bug-ncurses
[Top][All Lists]
Advanced

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

readline-like program


From: James Strother
Subject: readline-like program
Date: Thu, 13 Jan 2005 17:12:35 -0800
User-agent: Mutt/1.4.1i

I'm not sure if this is the appropriate forum, if it isn't then I
would really appreciate any links you think might be useful.  I've
been attempting to write a program that would have a readline-like
interface.  After reading through the manpages it appears that I
should be doing something like:

  initscr();
  cbreak();
  noecho();
  keypad(stdscr,TRUE);
  for (;;) {
    int a = getch();
    /* do something */
  }

This sets the WINDOW size to the physical screen size, which is not
what I want.  I want the rest of the terminal to be unaffected with
just a single terminal-input line at the end.  I tried (and tried..)
various combinations of setupterm and newwin, but I couldn't quite
get it to work.  Is there a "curses" way to do this or am I stuck
using termcap?

Many Thanks,
  Jim Strother





reply via email to

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