C-Menu 0.2.9
A User Interface Toolkit
Loading...
Searching...
No Matches
scriou.c File Reference

Screen IO Support for MENU. More...

#include <cm.h>
#include <stdbool.h>
#include <stdio.h>
#include <termios.h>
#include <unistd.h>
Include dependency graph for scriou.c:

Go to the source code of this file.

Functions

bool capture_shell_tioctl ()
 capture_shell_tioctl() - capture shell terminal settings
bool restore_shell_tioctl ()
 restore_shell_tioctl() - restore shell terminal settings
bool capture_curses_tioctl ()
 capture_curses_tioctl() - capture curses terminal settings
bool restore_curses_tioctl ()
 restore_curses_tioctl() - restore curses terminal settings
bool set_sane_tioctl (struct termios *t_p)
 set_sane_tioctl() - set terminal to sane settings for C-MENU
bool mk_raw_tioctl (struct termios *t_p)
 mk_raw_tioctl() - set terminal to raw mode
char di_getch ()
 sget single character from terminal in raw mode

Variables

struct termios shell_tioctl
struct termios curses_tioctl
bool f_have_shell_tioctl = false
bool f_have_curses_tioctl = false
struct termios shell_in_tioctl curses_in_tioctl
struct termios shell_out_tioctl curses_out_tioctl
struct termios shell_err_tioctl curses_err_tioctl

Detailed Description

Screen IO Support for MENU.

Author
Bill Waller Copyright (c) 2025 MIT License billx.nosp@m.wall.nosp@m.er@gm.nosp@m.ail..nosp@m.com
Date
2026-02-09

Definition in file scriou.c.

Variable Documentation

◆ curses_err_tioctl

struct termios shell_err_tioctl curses_err_tioctl

Definition at line 37 of file scriou.c.

Referenced by capture_curses_tioctl(), and restore_curses_tioctl().

◆ curses_in_tioctl

struct termios shell_in_tioctl curses_in_tioctl

Definition at line 35 of file scriou.c.

Referenced by capture_curses_tioctl(), and restore_curses_tioctl().

◆ curses_out_tioctl

struct termios shell_out_tioctl curses_out_tioctl

Definition at line 36 of file scriou.c.

Referenced by capture_curses_tioctl(), and restore_curses_tioctl().

◆ curses_tioctl

struct termios shell_tioctl curses_tioctl

Definition at line 23 of file scriou.c.

Referenced by xwgetch().

◆ f_have_curses_tioctl

bool f_have_curses_tioctl = false

curses tioctl captured

Definition at line 25 of file scriou.c.

Referenced by capture_curses_tioctl(), and restore_curses_tioctl().

◆ f_have_shell_tioctl

bool f_have_shell_tioctl = false

shell tioctl captured

Definition at line 24 of file scriou.c.

Referenced by capture_shell_tioctl(), and restore_shell_tioctl().

◆ shell_tioctl

struct termios shell_tioctl