Tty_raw; // for unsolicited input
static int Ttychanged = 0;
- /* Last established cursor state/shape, and is re-position needed */
+ /* Last established cursor state/shape */
static const char *Cursor_state = "";
-static int Cursor_repos;
/* Program name used in error messages and local 'rc' file name */
static char *Myname;
if (Ttychanged) {
tcsetattr(STDIN_FILENO, TCSAFLUSH, &Tty_original);
if (keypad_local) putp(keypad_local);
- if (Cursor_repos) putp(tg2(0, Screen_rows));
+ putp(tg2(0, Screen_rows));
putp("\n");
#ifdef OFF_SCROLLBK
if (exit_ca_mode) {
if (-1 == tcsetattr(STDIN_FILENO, TCSAFLUSH, &Tty_original))
error_exit(fmtmk(N_fmt(FAIL_tty_set_fmt), strerror(errno)));
if (keypad_local) putp(keypad_local);
- if (Cursor_repos) putp(tg2(0, Screen_rows));
+ putp(tg2(0, Screen_rows));
putp(Cap_curs_norm);
#ifndef RMAN_IGNORED
putp(Cap_smam);
static char buf[MEDBUFSIZ];
char *p;
- Cursor_repos = 1;
show_pmt(prompt);
memset(buf, '\0', sizeof(buf));
ioch(1, buf, sizeof(buf)-1);
if ((p = strpbrk(buf, ws))) *p = '\0';
// note: we DO produce a vaid 'string'
- Cursor_repos = 0;
return buf;
} // end: ioline
};
static struct lin_s *anchor, *plin;
- Cursor_repos = 1;
if (!anchor) {
anchor = alloc_c(sizeof(struct lin_s));
anchor->str = alloc_s(""); // top-of-stack == empty str
putp(tg2(beg+pos, Msg_row));
} while (key && key != kbd_ENTER && key != kbd_ESC);
- Cursor_repos = 0;
// weed out duplicates, including empty strings (top-of-stack)...
for (i = 0, plin = anchor; ; i++) {
#ifdef RECALL_FIXED
int i, key;
FLG_t f;
- Cursor_repos = 1;
spewFI
signify_that:
putp(Cap_clr_scr);
break;
}
} while (key != 'q' && key != kbd_ESC);
- Cursor_repos = 0;
#undef unSCRL
#undef swapEM
#undef spewFI