> Looking at the Take Command website and Googling about it I can find no
> reference to Take Command as a Terminal emulator *anywhere*. I am guessing
> it has very basic, if any, capabilities at all. Thus it probably doesn't
> heed any *':set columns=*' or other vim terminal commands.
If Vim's assumption of the terminal size (which is in the 'lines' and
'columns' options) does not match the actual terminal size, then display
problems are to be expected.
There are two sides: getting and setting the size.
Getting the size is always needed, unless you keep the terminal at the
default 25 x 80 size (which is unlikely). On top of that, Vim would
need to get notified if the terminal size is changed (e.g. by dragging
the border) while it is running, see below.
Setting the size is needed to support ":set lines=123" and ":set
columns=123". Or Vim needs to know that the size cannot be set and it
should give an error message and not change the number of lines/columns
used.
It is not so easy to figure out what happens in what sequence. I'll add
a few log messages to the Unix implementation. Handling the size works
fine there, thus this can be used as an example. But it might be that
for MS-Windows it works differently. E.g., in Unix a signal is used:
SIGWINCH. I don't know if MS-Windows has something similar. Also, the
implementation of term_report_winsize() needs to be checked. This
should trigger the signal in any Vim instance running in a terminal
window, initiated from the Vim instance that has the terminal window.
--
hundred-and-one symptoms of being an internet addict:
196. Your computer costs more than your car.
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20230621124103.ABC7D1C0A8A%40moolenaar.net.
No comments:
Post a Comment