GDC(6)

πŸ“¦ version 6.5.20250531, in opensuse-leap 16.0

πŸ’– GDC(6) πŸ’– β€” the Games manual, but make it cute πŸ’–

okay so bestie, welcome to the Games section, page GDC(6), and honestly? it's giving terminal-clock realness. ✨

🌸 NAME 🌸

gdc β€” the grand digital clock using curses. literally a big digital clock for your terminal, and yes, it ate. πŸ•°οΈπŸ’…

πŸŽ€ SYNOPSIS πŸŽ€

gdc [-dns] [-t hh:mm:ss] [count]

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so gdc uses curses to display a clock on the terminal. it constructs the digits from reverse-video blank characters β€” iconic behavior, no notes. if the terminal type supports color, the digits are drawn in red. πŸ”₯

make the clock stop, pause, or resume by typing q, s, or space, respectively. that's the whole vibe check: q = stop, s = pause, space = resume. 🫢

given a numeric operand, the clock stops after count seconds. normally, gdc runs β€œforever” β€” and by forever we mean at least 2 billion seconds. πŸ’€ not me thinking that's basically forever forever.

✨ OPTIONS ✨

  • -d β€” uses the terminal's default background color. matchy-matchy, lowkey flawless. πŸŽ€
  • -n β€” reads input from /dev/null, making gdc ignore the stop and pause commands. you can still stop it with a terminal interrupt. so yeah, it's on ignore mode but not completely untouchable. πŸ™ˆ
  • -s β€” scrolls the digits up as they change. when running on a fast display, the program breaks up the scrolling into sub-second redraws, making the operation appear smooth. smooth like butter, fr fr. 🧈✨
  • -t hh:mm:ss β€” uses the specified time instead of the current time. set the clock to whatever time you want, main character energy. β°πŸ‘‘

πŸ‘‘ AUTHORS πŸ‘‘

shoutout to the icons who made this happen: Amos Shapir, John Lupien (modifications for curses), Thomas Dickey (improvements for ncurses). absolute legends, periodt. πŸ’œπŸŒˆ


this little masterpiece comes from ncurses-examples, dated 2024-06-15, and it's page GDC(6) β€” mwah, bestie πŸ’‹πŸ’–

πŸ“¦ where this page comes from