bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Change terminal attributes


From: Bryan Christ
Subject: Re: Change terminal attributes
Date: Mon, 14 May 2007 09:25:02 -0500
User-agent: Thunderbird 1.5.0.10 (X11/20070302)

Sorry. I don't know of anyway to mix terminal fonts. You can easily change your terminal font by calling the user-space tool "setfont", but that will change the entire terminal. It's not pretty, but you many need to write your own line-art font rendering routines. Take a look at "myman" http://www.geocities.com/bsittler/#myman and see how the author does that in the "big" version of the game.

Francesco Esposito wrote:
Dear Bryan,
I would like to write some characters with different size(ex. Big) on application n-curses/CDK window.
Do you have any suggestion?

2007/5/11, Bryan Christ <address@hidden <mailto:address@hidden>>:

    I'm not sure I understand your question--it sounds like you want to
    handle resizing the terminal.

    When the terminal is resized the signal SIGWINCH is delivered to your
    program.  If you are using ncurses, this signal is caught by a default
    handler and you will get a value of KEY_RESIZE when you make the next
    call to getch().

    If you are running other process or writing your own terminal emulator,
    it is likely you will then want to deliver SIGWINCH to the foreground
    job and (possibly) issue the TIOCSWINSZ ioctl to the pty.

    For more information, take a look at the man pages for resizeterm() and
    tty_ioctl().

    Francesco Esposito wrote:
     > Hi all,
     > I would like to install a new action in my software that will
    consist to
     > resize terminal attributes(size, font,...) at run time.
     > My software is ncurses-based.
     >
     > Do you have any suggestion?
     >
     > Thanks,
     > Francesco
     >
     >
     >
     >
     >
    ------------------------------------------------------------------------
     >
     > _______________________________________________
     > Bug-ncurses mailing list
     > address@hidden <mailto:address@hidden>
     > http://lists.gnu.org/mailman/listinfo/bug-ncurses






reply via email to

[Prev in Thread] Current Thread [Next in Thread]