Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
Did you use conio.h or Windows API? Windows specific things aren't portable.
Try this on Linux as replacement:
static struct termios old_term, new_term;
/* initialise new terminal i/o settings*/
static void initTermios(int echo)
tcgetattr(0, &old_term); /* grab old terminal i/o settings */
new_term = old_term; /* make new settings same as old settings */
new_term.c_lflag &= ~ICANON; /* disable buffered i/o */
new_term.c_lflag &= echo ? ECHO : ~ECHO; /* set echo mode */
tcsetattr(0, TCSANOW, &new_term); /* use these new terminal i/o settings now */
/* Restore old terminal i/o settings */
static void resetTermios(void)
tcsetattr(0, TCSANOW, &old_term);
/* Read 1 character - echo defines echo mode */
static char getch_(int echo)
ch = getchar();
If you're on Windows 10, you can use WSL to use the gcc compiler. That's what I do
gururaju44*Now that's what I call a Hacker* MOTHER OF ALL AUTOMATIONS This seems a long post. but you will definitely ...
linuxxx64This guy at my last internship. A windows fanboy to the fucking max! He was saying how he'd never use anythi...
creedasaurus64Another dev on my team just got a new machine. Before he came in today I made two separate USB installers and ...