VCR.py: Use unix files instead of stdio files for tty communication,
        because of buffering.  Also added several new commands (Jack).
VFile.py: Made setting of RGB or colormap mode separate methods,
	so they can be overridden (e.g. when using the Glx.draw widget
	the way to change the mode is totally different).
diff --git a/Demo/sgi/video/VFile.py b/Demo/sgi/video/VFile.py
index 016115a..f04d93b 100755
--- a/Demo/sgi/video/VFile.py
+++ b/Demo/sgi/video/VFile.py
@@ -442,8 +442,7 @@
 		self.color0 = None
 		self.fixcolor0 = 0
 		if self.format in ('rgb', 'jpeg', 'compress'):
-			gl.RGBmode()
-			gl.gconfig()
+			self.set_rgbmode()
 			gl.RGBcolor(200, 200, 200) # XXX rather light grey
 			gl.clear()
 			return
@@ -456,8 +455,7 @@
 			gl.clear()
 			gl.pixmode(GL.PM_SIZE, 8)
 			return
-		gl.cmode()
-		gl.gconfig()
+		self.set_cmode()
 		self.skipchrom = 0
 		if self.offset == 0:
 			self.mask = 0x7ff
@@ -470,6 +468,18 @@
 		if not self.quiet:
 			sys.stderr.write(' Done.\n')
 
+	# Set the window in RGB mode (may be overridden for Glx window)
+
+	def set_rgbmode(self):
+		gl.RGBmode()
+		gl.gconfig()
+
+	# Set the window in colormap mode (may be overridden for Glx window)
+
+	def set_cmode(self):
+		gl.cmode()
+		gl.gconfig()
+
 	# Clear the window to a default color
 
 	def clear(self):