[Tip] MS-DOS Promt -> OSX Terminal

a while ago, not so long ago, i came across a thread in which there was a link to a page that indicated methods to modify/create a .cmd file on windows in order to customize a "prompt" window to look like anything you'd like to... i took the task to recreate the OSX Terminal window using this method (see image attached)...

the process wasn't so difficult at all, as much as getting a certain character to display properly...

you just have to create a text file somewhere and insert this into the file:

@title Terminal - ttyp1

@echo Logged On: %date%%time% on console

@echo Welcome to Darwin!

@"%comspec%" /k prompt [COMPUTERNAME:~ $p] %username%%%%

where you change "COMPUTERNAME" to anything you like.

then save the file as "whateveryoulike.cmd"

run it and if you got it right, the prompt should come up looking as the OSX Terminal.

if you happen to use Yz Dock, as i do, drag the file you created onto the dock, right click on it and choose "property of dock item"... where it says "Work Folder" just type either "c:\" or "\", without the quotes obviously.

open the new created dock shortcut and right click on the window title bar... choose properties. in there you can customize even more the look of the prompt window, that including font style, colors, font sizes, and cursor sizes (choose large in order to get the most OSX look-alike)...

however, i've seen that the command window a.k.a cmd.exe doesnt skin as it should while having some sort of theme installed and running on XP. this is where the Aqua-Soft comunity comes in... there are a lot of skining and modding experts out there... i know it. does anyone of you pros know how to get the "cmd.exe" window themed like the rest of my apps? is it even possible???

anyways, if someone doesn't quite get what i just wrote here, contact me... i'll gladly help you out in any way i can...

#47660

thats pretty kewl, but for authenticities sake i put this together...

@echo off
title Terminal - tcsh (ttyp1)
prompt [%COMPUTERNAME%:~] %username%%%
set currentdir=%cd%
cd "%temp%"
if exist out.reg del out.reg
if exist out2.reg del out2.reg
regedit /e "out.reg" "HKEY_CURRENT_USER\Control Panel\International"
echo Windows Registry Editor Version 5.00>>out2.reg
echo.>>out2.reg
echo [HKEY_CURRENT_USER\Control Panel\International]>>out2.reg
echo "sShortDate"="ddd MMM d">>out2.reg
regedit /s out2.reg
FOR /F "tokens=1,2 delims=." %%i in ('echo %time%') do set time1=%%i
echo Last login: %date% %time1% on console
regedit /s out.reg
cd "%currentdir%"
echo Welcome to Darwin!
"%comspec%" /t:F0 /k @echo on

use it pretty much the same, but dont modify any of the script.

heres a screeny of my OSX terminal and my new XP Cmd window.

#47685

had another look, and managed 2 cut alot of crap outta the script.

@title Terminal - tcsh (ttyp1)|cls
@prompt [%COMPUTERNAME%:~] %username%%%
@reg export "HKCU\Control Panel\International" %temp%\out.reg>nul
@reg add "HKCU\Control Panel\International" /v "sShortDate" /t "REG_SZ" /d "ddd MMM d" /f>nul
@for /F "tokens=1,2 delims=." %%i in ('echo %time%') do @echo Last login: %date% %%i on console
@reg import %temp%\out.reg>nul
@echo Welcome to Darwin!
@"%comspec%" /t:F0 /k

now it looks exactly like the osx terminal.

-The Unknown

#50531

wicked!

Now for the important part :P...

Is there any good, fast console app for windows thats skinnable with msstyles/WB?

I'm using Console.exe but its too sluggish.

#50544

I highly recommend getting cygwin with RXVT the border on that uses your theme, you can even actually use the shell OSX uses by default TCSH in it. IT's more authentic than modding cmd.exe to look like it. Because not only does it look like it but you get functionality too.

If you need a little help getting it setup message me.

My screenshot with it open.

#50551

wow, nice 'Terminal'!!

And nice theme too. ;)

#50554

Originally posted by smoke@Aug 26 2003, 11:09 AM

I highly recommend getting cygwin with RXVT the border on that uses your theme, you can even actually use the shell OSX uses by default TCSH in it. IT's more authentic than modding cmd.exe to look like it. Because not only does it look like it but you get functionality too.

If you need a little help getting it setup message me.

My screenshot with it open.

but what console app are you using?

#50585

Thanks, that's RXVT (it's an x-term ported from linux) running the TC Shell (TCSH) the same exact command line that is used on OSX. You can download it through cygwin.

I just wanted to add that yesterday I had it tailing my web server and firewall logs which was pretty cool.

Theme is Max Rudbgerg's Classic Platinum ;)

#50616

I had something to say, but now I don't.

#50622