Mike's Software Blog
  • Topics
    6502 How-to Linux Debian Software PHP Just for fun Hardware ESC/POS
  • Projects
    8-Bit Table Tennis 6502 Assembly Plugin for IntelliJ 6502 Computer Bring a plate ESC/POS print driver Samoan Language PHP image processing library (gfx-php) Word puzzles
  • About
  • About

Tag: curses

“Hello World” in python (with curses)

curses python
Posted on April 30, 2013November 5, 2015

I use the ncurses library a lot, and decided to have a shot at python today.

Thankfully they have a great curses module, so I started out with a “hello world” program that looked like this:

#!/usr/bin/env python
import curses

scr = curses.initscr()
scr.keypad(0)
curses.noecho()

scr.addstr("hello world")
scr.refresh()
scr.getch()

curses.endwin()

Recent Posts

  • Switching between VFIO-enabled virtual machines
  • Going all-in on GPU passthrough for software development
  • Building a 1U quiet NAS
  • Controlling computer fans with a microcontroller
  • Converting my 65C816 computer project to 3.3 V
  • Porting the Amiga bouncing ball demo to the NES
  • Let’s make a bootloader – Part 2
  • Let’s make a bootloader – Part 1
  • Building a simple power supply module
  • Let’s implement power-on self test (POST)
Proudly powered by WordPress