[Top][All Lists]

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

erasechar and killchar

From: Mike Gran
Subject: erasechar and killchar
Date: Thu, 20 Jan 2011 20:30:08 -0800 (PST)


Are erasechar and killchar supposed to get their definition from
the terminfo for TERM?  If so, I'm not sure that that's happening.

If I have a trivial program like this


#include <stdio.h>
#include <curses.h>

int main (int argc, char ** argv)
  char c, k;

  c = erasechar();
  k = killchar();
  printf(" %d %d \n", (int)c, (int)k);
  return 0;


It seems to print the same values no matter what I set TERM to.
If I run the program in xterm, I always get 127 (del) and 21 (nak)
regardless of the value of TERM.
If I run the program in emacs's eterm, I always get ERR and ERR.


Mike Gran

reply via email to

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