-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for large terminal windows with a tiny font #3980
Comments
|
Replying to 0xe2.0x9a.0x9b (#3980):
mc gets the terminal size from screen library or from ioctl(TIOCGWINSZ).
The threshold is 512.
Resize to 512 columns:
Correct rendering.
Resize to 513 columns:
Incorrect rendering regardless of resizing terminal window with running mc or run mc in the preliminary resized window.
MATE terminal 1.12.1, xterm-320. |
This is S-Lang limitation:
|
Replying to andrew_b:
You are right. In Gentoo Linux, rebuilding mc without slang resolves the issue. |
|
Hello. I don't understand why the ticket has been resolved as "invalid". Isn't it true that Midnight Commander could *by itself* on-the-fly switch to using ncurses rather than slang when it determines that the number of columns or rows exceeds 512, even if it is compiled with slang support? |
Replying to 0xe2.0x9a.0x9b:
Because this is not a bug. This is neither MC nor S-Lang bug. This is well (or not well) known limitation of S-Lang. If you think this is a bug, please send bug report to S-Lang author.
No, it isn't.
Btw, duplicate of #1498. |
Replying to andrew_b:
Note that this is a theoretical question. I am not forcing MC to actually implement the slang⟷curses runtime switching.
|
Replying to 0xe2.0x9a.0x9b:
Thanks. |
|
Important
This issue was migrated from Trac:
0xe2.0x9a.0x9b
(0xe2.0x9a.0x9b@….com)0xe2.0x9a.0x9b@….com
Hello.
The Kitty terminal emulator enables the user to quickly change the font size. With a very tiny font, the number of columns in the terminal is very large and seems to overflow an internal Midnight Commander limit.
Steps to reproduce:
Executing "tput cols" can be used to get the number of columns in the terminal.
columns=384: correct rendering
columns=480: incorrect rendering (missing vertical bars, tput reports 480 columns from mc's command-line ---- this seems to be a Kitty bug)
columns=640: incorrect rendering (mc is on the left side of the screen, tput reports 80 columns from mc's command-line)
Xfce4-Terminal with fontsize=1 and 1906 columns: mc is on the left side of the screen, tput reports 80 columns from mc's command-line.
This is a bit academic/theoretical only, because the tiny font is unreadable on a 1920x1080 monitor. But with 4K/8K displays the font might be readable.
Note
Original attachments:
0xe2.0x9a.0x9b
(0xe2.0x9a.0x9b@….com) onApr 24, 2019 at 22:31 UTC
The text was updated successfully, but these errors were encountered: