Display a letter in bold

main
sigonasr2, Sig, Sigo 2 years ago committed by GitHub
parent c5cf279f4e
commit 62ba773cff
  1. BIN
      main
  2. 15
      main.c

BIN
main

Binary file not shown.

@ -3,7 +3,20 @@
int main(char argc,char**argv) {
initscr();
printw("Hello World!");
raw();
keypad(stdscr,TRUE);
noecho();
printw("Type any character:");
int ch=getch();
if (ch==KEY_F(1)) {
printw("F1 Key pressed!");
} else {
attron(A_BOLD);
printw("%c",ch);
attroff(A_BOLD);
}
refresh();
getch();

Loading…
Cancel
Save