Skip to content

Commit

Permalink
print schemes on same line (mbadolato#406)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmartini authored Jun 13, 2023
1 parent 67f9d94 commit 5bbbae7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tools/preview.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@
history = []
until files.empty?
file = files.shift
print "[#{File.basename file, '.*'}] " if preview
if preview
puts `tput cup 0 0` # goto top of screen
print "[#{File.basename file, '.*'}] "
puts `tput el` # clear to eol
end
begin
colors = {}
root = REXML::Document.new(File.read file).root
Expand Down

0 comments on commit 5bbbae7

Please sign in to comment.