about summary refs log tree commit diff stats
path: root/code
diff options
context:
space:
mode:
Diffstat (limited to 'code')
-rw-r--r--code/cli.rb53
1 files changed, 0 insertions, 53 deletions
diff --git a/code/cli.rb b/code/cli.rb
index c982d0bd..3ef38237 100644
--- a/code/cli.rb
+++ b/code/cli.rb
@@ -19,9 +19,6 @@ module CLI
 			'<down>'
 		when ?\e
 			'<esc>'
-# keep spaces as they are, makes more sense
-#		when ?\s
-#			'<space>'
 		when Ncurses::KEY_BTAB
 			'<s-tab>'
 		when 9
@@ -125,40 +122,6 @@ module CLI
 		Ncurses.mvchgat(y, x, len, attr, get_color(fg, bg), nil)
 	end
 
-#	def color(fg = -1, bg = -1)
-#		if OPTIONS['color']
-#			Ncurses.color_set(get_color(fg,bg), nil)
-#		end
-#	end
-#
-#	def color_at y, x=0, len=-1, fg=-1, bg=-1, attributes=0
-#		if OPTIONS['color']
-#			if y < 0 then y += Ncurses.LINES end
-#			Ncurses.mvchgat(y, x, len, attributes, get_color(fg, bg), nil)
-#		end
-#	end
-#
-#	def color_bold_at y, x=0, len=-1, fg=-1, bg=-1
-#		color_at(y, x, len, fg, bg, attributes = Ncurses::A_BOLD)
-#	end
-#
-#	def color_reverse_bold_at y, x=0, len=-1, fg=-1, bg=-1
-#		if OPTIONS['color']
-#			color_at(y, x, len, fg, bg, Ncurses::A_REVERSE | Ncurses::A_BOLD)
-#		else
-#			Ncurses.mvchgat(y, x, len, Ncurses::A_REVERSE | Ncurses::A_BOLD, 0, nil)
-#		end
-#	end
-#	alias color_bold_reverse_at color_reverse_bold_at
-#
-#	def color_reverse_at y, x=0, len=-1, fg=-1, bg=-1
-#		if OPTIONS['color']
-#			color_at(y, x, len, fg, bg, Ncurses::A_REVERSE)
-#		else
-#			Ncurses.mvchgat(y, x, len, Ncurses::A_REVERSE, 0, nil)
-#		end
-#	end
-
 	def get_color(fg, bg)
 		n = bg+2 + 9*(fg+2)
 		color = @@colortable[n]
@@ -170,20 +133,4 @@ module CLI
 		end
 		return color
 	end
-#
-#	def bold(b = true)
-#		if b
-#			Ncurses.attron(Ncurses::A_BOLD) 
-#		else
-#			Ncurses.attroff(Ncurses::A_BOLD) 
-#		end
-#	end
-#
-#	def reverse(b = true)
-#		if b
-#			Ncurses.attron(Ncurses::A_REVERSE) 
-#		else
-#			Ncurses.attroff(Ncurses::A_REVERSE) 
-#		end
-#	end
 end
403 - 'function' is more clear than 'def'' href='/akkartik/mu/commit/factorial.mu?h=main&id=0ca35d02df358b73f4e2c6c665226d2d56c61fdd'>0ca35d02 ^
d4b4d018 ^
7d2c2d55 ^
4b62edd8 ^
7d2c2d55 ^
cb9e66d7 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22