Sha256: 7dd0caa1929ee398c539bcf6343ff204e07828f7db53a7700fe3f46e04203833
Contents?: true
Size: 384 Bytes
Versions: 5
Compression:
Stored size: 384 Bytes
Contents
#!/usr/bin/env ruby # require_relative "../lib/curses" require 'curses' include Curses init_screen begin addstr("The following letter A should be BOLD and UNDERLINED by using addch:\n") addch('A'.ord | A_BOLD | A_UNDERLINE) addstr("\nIt should look the same as when using attron and addstr:\n") attron(A_BOLD | A_UNDERLINE) addstr("A") getch ensure close_screen end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
curses-1.4.7 | sample/addch.rb |
curses-1.4.6 | sample/addch.rb |
curses-1.4.5 | sample/addch.rb |
curses-1.4.4 | sample/addch.rb |
curses-1.4.4.beta.1 | sample/addch.rb |