Lines Matching refs:tio
924 #tio = TkTextIO.new(f, :show=>:nil,
925 #tio = TkTextIO.new(f, :show=>:pos,
926 tio = TkTextIO.new(f, :show=>:insert,
934 $stdin = tio
935 $stdout = tio
936 $stderr = tio
952 p tio
957 puts "current show_mode is #{tio.show_mode}."
958 if tio.show_mode == :pos
961 puts "So, you can see the position '#{tio.show_mode}' on this text widget."
968 tio.seek(0)
974 tio.rewind
975 tio.each{|line| STDOUT.printf("%2d: %s\n", tio.lineno, line.chomp)}
981 tio.seek(-1, IO::SEEK_END)
984 tio.seek(:linestart, IO::SEEK_CUR)
987 tio.seek('0 char linestart', IO::SEEK_CUR)
990 tio.seek('-1 char linestart -1 char', IO::SEEK_CUR)
991 end while(tio.pos > 0)
995 tio.seek(0, IO::SEEK_END)
997 STDOUT.print("tio.sync == #{tio.sync}\n")
998 # tio.sync = false
999 # STDOUT.print("tio.sync == #{tio.sync}\n")
1029 tio.sync = false