Bookmarks

Yahoo Gmail Google Facebook Delicious Twitter Reddit Stumpleupon Myspace Digg

Search queries

Wwwxxx.APC, wwwxxx CN2, can't locate feature.pm in @inc (@inc contains, Wwwxxx ba2, wwwxxx Bhaskar, wwwxxx Bhaskar, XxxxDup, wwwxxix Buzz, wwwxxxdbgf, ncurses font size

Links

XODOX
Impressum

#1: ncurses - change font size

Posted on 2006-03-10 23:22:01 by skuwka

Hello
How to chande font size in ncurses library??

Wojtek (form Poland)

Report this message

#2: Re: ncurses - change font size

Posted on 2006-03-11 00:44:25 by bonomi

In article <1142029321.145382.208940@i39g2000cwa.googlegroups.com>,
<skuwka@gmail.com> wrote:
>Hello
>How to chande font size in ncurses library??
>
>Wojtek (form Poland)
>

Curses and cousins are designed to use character sets that are built into
the display device itself. addressing is only to the levelof the character,
all of which are presumed to be of the same height, and width. As such,
'font size' is meaningless to curses.

The termcap database has nothing in it for fonts or font sizes. Thus you
will have to issue your own _terminal dependant_ commands for specifying
fonts/sizes. *ASSUMING* you have hardware (or emulation software) which
supports that capability.

WARNING: doing such in the middle of curses output *will* irretreviably
screw up the display. Doing it _before_ calling initscr() is ok.

Report this message

#3: Re: ncurses - change font size

Posted on 2006-03-11 01:06:37 by skuwka

Thx for answer

Report this message

#4: Re: ncurses - change font size

Posted on 2006-03-11 03:21:13 by Keith Thompson

bonomi@host122.r-bonomi.com (Robert Bonomi) writes:
> In article <1142029321.145382.208940@i39g2000cwa.googlegroups.com>,
> <skuwka@gmail.com> wrote:
>>Hello
>>How to chande font size in ncurses library??
>
> Curses and cousins are designed to use character sets that are built into
> the display device itself. addressing is only to the levelof the character,
> all of which are presumed to be of the same height, and width. As such,
> 'font size' is meaningless to curses.
>
> The termcap database has nothing in it for fonts or font sizes. Thus you
> will have to issue your own _terminal dependant_ commands for specifying
> fonts/sizes. *ASSUMING* you have hardware (or emulation software) which
> supports that capability.
>
> WARNING: doing such in the middle of curses output *will* irretreviably
> screw up the display. Doing it _before_ calling initscr() is ok.

It depends on what changing the font size does. Under xterm, for
example, sending certain control sequences will change the font size
and simultaneously change the size of the window, keeping the same
number of rows and columns. This should be transparent to ncurses.

If you do change the dimensions of the window (switching between 80
and 132 columns is a common example), you should be able to deal with
it in ncurses by handling the SIGWINCH signal. Details are left as an
exercise for the ncurses man pages.

--
Keith Thompson (The_Other_Keith) kst-u@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.

Report this message

#5: Re: ncurses - change font size

Posted on 2006-03-11 17:40:01 by Thomas Dickey

Keith Thompson <kst-u@mib.org> wrote:

> If you do change the dimensions of the window (switching between 80
> and 132 columns is a common example), you should be able to deal with
> it in ncurses by handling the SIGWINCH signal. Details are left as an
> exercise for the ncurses man pages.

man resizeterm notes

If ncurses is configured to supply its own SIGWINCH handler, the
resizeterm function ungetch's a KEY_RESIZE which will be read on the
next call to getch. This is used to alert an application that the
screen size has changed, and that it should repaint special features
such as pads that cannot be done automatically.

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net

Report this message