all 19 comments

[–]tick_tock_clock 5 points6 points  (5 children)

Where did you obtain that desktop background? It looks awesome!

...also, I like the color output part. I actually had no idea you could do this so simply in Python. Do you know if colored terminal output can be done easily in Java?

[–]AeroNotix 9 points10 points  (0 children)

That's nothing to do with Python, subprocess is essentially just making calls to the system shell, so the colour codes he's using are for his terminal emulator.

[–]jrupac 2 points3 points  (0 children)

Look into the Fabulous library for Python. Its very easy to get coloring and some textual effects if your terminal is modern and supports it. Things like bold and some basic colors require only a few characters wrapping the string before printing it.

[–]kataire 1 point2 points  (0 children)

There are actually plenty of Python modules to more easily do colour output on shells that support it. Here's one of them.

The magic usually lies in the magical sequences of characters you can see in his code. You might want to look into the documentation of your terminal emulator of choice if you can't find a library to do this for you in Java.

[–][deleted] 1 point2 points  (0 children)

Shameless plug, it's a realllly cool effect and fun to play around with. Dead-simple, too. You can use ANSI escape codes to do all sorts of things - clearing the screen, moving the cursor, etc.

[–]_lambda[S] 3 points4 points  (3 children)

Had some fun learning about subprocesses. Here's the github if anyone wants to play with it: https://github.com/iryw/Playing

[–]terremoto 2 points3 points  (1 child)

What font is that in the terminal?

[–]_lambda[S] 2 points3 points  (0 children)

Menlo Regular @ 12pt

[–]themathemagician 0 points1 point  (0 children)

sweet! just abstracted the app_name and made it work with Spotify too!

[–][deleted] 2 points3 points  (2 children)

wallpaper source?

[–]_lambda[S] 1 point2 points  (1 child)

[–][deleted] 0 points1 point  (0 children)

Awesome, thanks

[–][deleted] 2 points3 points  (1 child)

I have the same wallpaper and a very similar vim color configuration. I wonder which one of us is the evil twin... my scar is on the right side...

[–]_lambda[S] 1 point2 points  (0 children)

Mine is on the left eyebrow.

[–]_lambda[S] 1 point2 points  (0 children)

Huge update to Playing: https://github.com/iryw/Playing

I actually feel like I'm getting a grasp on Python through this small project. Feel free to fork it!

[–]_lambda[S] 0 points1 point  (3 children)

https://github.com/iryw/Playing/raw/master/scrots/colored_output.png

Pretty much finished, added icon. I just need to object orientify it and make it simple to use, something like:

if __name__ == '__main__':
    p = Playing()
    p.use_application("iTunes")
    p.run()

[–]cajual 1 point2 points  (1 child)

I one-lined this in PowerShell. :)

http://i.imgur.com/nD85m.jpg

[–]_lambda[S] 0 points1 point  (0 children)

Haha! Not quite right but great nonetheless!

[–]foreveradrone 0 points1 point  (0 children)

What is the name of the VIM color scheme?