Friday, September 3, 2021

Re: repost in new thread...how does Vim open a TTY window?

On 2021/08/18 11:43, Bram Moolenaar wrote:
>> Does vim do it's own TTY / terminal extension, or does it use the one
>> in Win10.
>>
> What do you mean with "terminal extension"? Vim runs in the console,
> can use the Windows terminal and also has a built-in terminal emulator.
>
----
Sorry I meant the graphical version of vim -- gvim.
This came out of the note entitled
"RedHat Athena: GUI vim is extremely slow using terminal"
by "Aleksandr JakuĊĦev", date+time 2021/05/07 07:57(PDT).

He said the new ":term" function in Gvim_v8 (wasn't in V7) was
really slow, example: ":term ls -l" takes several minutes to run.

I couldn't try to repeat his problem at the time because I still
was running gvim 7.x on my linx at the time.

Anyway, got that upgraded and realized I could also use the
gvim running natively on Windows as it was also at 8.2.2803.
(running on linux, displaying on Windows).
>> I.e. I thought someone said they didn't think it would work under
>> Win7?
>>
> The Windows terminal is not available in Windows 7.
>
yeah, but the gvim ":term" feature doesn't use the Windows
terminal feature, so it works regardless.

What I notice as a bit 'odd' is that the emulated
terminal feature set isn't consistent. For example,
I have a shellscript to show 24-bit color (attached).
The native Win version, _maybe_ has 256 colors at most.
but definitely not 24-bit:

VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Apr 23 2021 22:01:55)
MS-Windows 64-bit GUI version with OLE support
Included patches: 1-2803
Compiled by appveyor@APPVYR-WIN
Huge version with GUI.


But in the Cygwin version:
VIM - Vi IMproved 8.2.486
Mod+compiled by <cygwin@cygwin.com>
Huge version with GTK3 GUI.

as well as a linux version(s) (displayed on same cygwin-X):
Vim 8.2.3204
Compiled by 'http://www.opensuse.org/'
Huge version with GTK3 GUI.

24-bit color fully works and is fast!

Why would vim's terminal emulation be different and
less capable using native Win calls, vs.
when it's displayed via 'X'?












--
--
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/61321612.7040201%40tlinx.org.

No comments: