Skip to content

Instantly share code, notes, and snippets.

@Pokechu22
Created September 21, 2018 01:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Pokechu22/45d19aa5e41ee6db00723f808ac4339e to your computer and use it in GitHub Desktop.
Save Pokechu22/45d19aa5e41ee6db00723f808ac4339e to your computer and use it in GitHub Desktop.
import curses
def main(stdscr):
stdscr.clear()
stdscr.addstr(4, 5, "Hi _ Hi")
msg = "Hi 🕴 Hi"
stdscr.addstr(5, 5, msg)
stdscr.refresh()
pos = str(curses.getsyx()) + " " + str(5 + len(msg))
stdscr.addstr(10, 5, pos)
stdscr.refresh()
stdscr.getkey()
curses.wrapper(main)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment