Sha256: a680b87817f46d2f5d5fd52abb769b468a294269c8f33e701581cfdaf6f123b7
Contents?: true
Size: 506 Bytes
Versions: 8
Compression:
Stored size: 506 Bytes
Contents
require 'io/console' module FancyIrb module TerminalInfo def self.lines STDOUT.winsize[0] end def self.cols STDOUT.winsize[1] end if RbConfig::CONFIG['host_os'] =~ /mswin|mingw/ TPUT = { :sc => "\e[s", :rc => "\e[u", :cuu1 => "\e[1A", :cuf1 => "\e[1C", } else TPUT = { :sc => `tput sc`, :rc => `tput rc`, :cuu1 => `tput cuu1`, :cuf1 => `tput cuf1`, } end end end
Version data entries
8 entries across 8 versions & 1 rubygems