Re: Max tty lines/cols?



jKILLSPAM.schipper@xxxxxxxxxx wrote:
dfeustel@xxxxxxxxxxxxxx wrote:
Now that I'm running (quite happily!) in text mode only (no X), I'm
wondering just what is the maximum number of lines and columns
supported by the OpenBSD terminal driver.
I can use ncurses 5.5 now.

tty(4) does not care, I suppose. However, if you are on a PC and using
standard text mode VGA via the the vga(4) driver (see also wscons(4),
wsdisplay(4)), you will be using 80x25 by default.

I am using a PC with a standard video card.

IIRC, this can be changed by uploading a different (8x8) font via
wsfontload(8); in this way, you can use a 80x50 display. I don't
especially like those fonts, though, and use 80x25 myself.

I can definitely live with 80x25, especially if changing that would
require a lot of customization. I like using a stock system.
The reason I am interested in more lines/cols is that I'm running with
a 21" monitor which, when I was using X, displayed 2048x1536. My
impression is that the kernel determines the maximum lines and columns
and that I could use up to that maximum via ncurses. However, I am not
interested in doing that if it means opening up the security hole in the
video card interface. I've been wondering how hard it would be to have
something like a 80 lines by 200 cols character video mode, possibly
implemented in the video card as an alternative to X for hi-res displays.
A character mode windowing system could be built on top of that. Since
it would be a new feature, it (hopefully) could be implemented securely.

Different architectures have vastly different text modes; I am not sure
I could help with those, but feel free to ask.
Joachim

I did notice as I started looking at the man pages for curses, ncurses,
terminfo, etc, that there are many references to /usr/share/terminfo,
a directory that does not exist in 3.9. There also is a reference to
/usr/share/misc/terminfo which does not exist. I have 20-year-old copies
of _Programming with Curses_ and _Reading and Writing Termcap Entries_
but I would rather rely on current OpenBSD man pages as I delve into using
ncurses on OpenBSD.

Dave

--
Using OpenBSD with or without X & KDE?
See Dave's OpenBSD | X | KDE corner at
http://dfeustel.home.mindspring.com !!!
.



Relevant Pages

  • Re: /usr/share/terminfo
    ... file in an OpenBSD 3.7, though there was one in an older version ... complementary program for converting a termcap database back to source. ... ncurses 5.6 can be configured with a hashed database for terminfo, ...
    (comp.unix.bsd.openbsd.misc)
  • Re: /usr/share/terminfo
    ... file in an OpenBSD 3.7, though there was one in an older version ... complementary program for converting a termcap database back to source. ... ncurses 5.6 can be configured with a hashed database for terminfo, ...
    (comp.unix.bsd.openbsd.misc)
  • Max tty lines/cols?
    ... I can use ncurses 5.5 now. ... Dave Feustel ... Using OpenBSD with or without X & KDE? ... See Dave's OpenBSD | X | KDE corner at ...
    (comp.unix.bsd.openbsd.misc)
  • ffmpeg and intel video card
    ... I'm new on this forum and I'm new width OpenBSD.. ... I've got a problem width ffmpeg.. ... OpenBSD find my video card as bktr0 device.. ...
    (comp.unix.bsd.openbsd.misc)