elks-enhanced
public
Read
Owner: themaster
Branch: master
Commits: 6893
Updated: 2026-04-19 00:15
Git CLI clone URL
git clone https://www.xt-emporium.com/git/elks-enhanced.git
Fullscreen desktop URL
Code
Commits
History
Branches
Bug Reports
Discussions
Compare
Settings
elks-enhanced
/
elkscmd
/
elvis
/
test.c
File editor
#include <termios.h> static struct termios orgtermios; main() { int n; char buf[256]; setraw(0); for (;;) { n = read(0, buf, sizeof(buf)); if (n > 0) { if (buf[0] == '!') break; write(1, buf, n); } } setcooked(0); } setraw(fd) int fd; { struct termios termios; tcgetattr(fd, &orgtermios); termios = orgtermios; termios.c_iflag &= (IXON|IXOFF|IXANY|ISTRIP|IGNBRK); termios.c_oflag &= ~OPOST; termios.c_lflag &= ISIG; termios.c_cc[VINTR] = 3; termios.c_cc[VMIN] = 1; termios.c_cc[VTIME] = 0; tcsetattr(fd, TCSANOW, &termios); } setcooked(fd) int fd; { tcsetattr(fd, TCSAFLUSH, &orgtermios); }
Commit message
This repository is read-only for this account.
Repository snapshot
Current branch
master
Visibility
public
Your access
Read
Remote
Configured
File activity
View file history