Permalink
Browse files

lol

  • Loading branch information...
1 parent e9c3091 commit 1bdcdb2df7fcdf6e11ba35be3538e7d7d211b3c7 @natano natano committed Feb 19, 2009
Showing with 26 additions and 0 deletions.
  1. +26 −0 mp.rb
View
@@ -0,0 +1,26 @@
+#!/usr/bin/env ruby
+#-*- coding: UTF-8 -*-
+
+require "console"
+
+Console.clear()
+$is_ascii = false
+
+filelist = Win.new()
+playlist = Win.new()
+
+while 1:
+
+ filelist.text = Dir.entries(Dir.pwd).join("\n")
+ filelist.width = Console.width / 2
+ filelist.height = Console.height
+ filelist.position = 0, 0
+ playlist.width = Console.width - filelist.width
+ playlist.height = Console.height
+ playlist.position = 0, filelist.width
+ filelist.draw()
+ playlist.draw()
+ Cursor.position = 0, 0
+ sleep 0.5
+end
+

0 comments on commit 1bdcdb2

Please sign in to comment.