- What is Cygwin?
- Where can I learn more?
http://www.cygwin.com/- Does it include Tcl and Tk?
- Why are there such problems using TEA under Cygwin?
- What compiler should I use with cygwin?
- Are there any special add-on packages that would be useful when developing with Cygwin?
startxassuming you clicked XFree86 in the 'setup' installer.That gives you X Windows emulation on ms windows, that is a big window which has contents just like on an X server/client setup, like on Linux. In fact it easily cooperates with Linux, by changing the DISPLAY variable to some other machine running either the same or linux (with gui) or Unix, and setting xhost +your.machine on the other machine, and running a shell on you machine, it appear on the other. Maybe worth a separate page, but I guess many will know. The reverse is also fine, the main screen can be refered to as :0, so
export DISPLAY=some.machine:0Note that bash requires the use of export to set shell variables, 'set' results gets lost.in any terminal window on the X screen you can type
xterm &to get more terminals, when the rubber lining appears click somewhere to place the window. To get a nicer window manager, use ps to find the PID (process ID) of 'twm' the standard window manager, kill it with
kill <PID>\and type
wmaker &in some terminal's shell. Now openstep will start, which looks pretty cool and works comfortable.Text editors supplied are emacs (me) and vi, and maybe more. DIR becomes ls, more and pipes | are available. Find works like:
find -name '*somename*' /cygdrive/c/cygwin/... -printBat files become .sh script files, slashes go the other way around as in windows (/).The most important command is probably 'man' which stands for manual.
man manwill give you the manual page for the man command. man gcc can also be useful, but lengthy.
wishwill give you the builtin (fairly recent but usually not completely the same as standard) tcl/tk. Add an ampersand to start it in the background, so your shell can continue.For the advanced:
gdbor as of recently
insightis a powerful graphical C debugger, with interface based on tcl/tk (hardcoded, but fast).
[Is Joe English the resident expert?][Absolutely not. I'm as confused by this stuff as everyone else. --jenglish ]. But see [1] for something I'm working on that may eventually help.[Mumit Khan] appears to be the expert.
TV Anyone try porting tcl/tk in some version to the FREEX server with cygwin?escargo 27 Aug 2003 - What's FREEX? Do you mean the XFree86 X server?
[Environment Quirks for ActiveState TCL and Cygwin]When using a TCL interpreter which is started outside of the cygwin environment, make sure to check your environment variables from within TCL if you are not getting the results that you expected. I was having fits trying to get arch[2] command output into TCL. The problem as it turned out was due to discrepancies between the environment variables. Thus a simple set env(HOME) /path/to/home fixed my problems. The moral of this story is: Before you pull your hair out because you aren't getting the output you expected, check your environment settings. A big thanks to the people on #tcl at irc.freenode.net for helping me out with this.LES on April 11, 2004. I use Cygwin, but not the Cygwin Tcl. I prefer ActiveTcl. My $PATH has 21 paths, but when I use it from Cygwin/rxvt, I get 25 paths. Inspection revealed that Cygwin prepends 4 paths to one's $PATH, and if you already have them in your $PATH (say you want to call GNU programs from outside Cygwin), they will be repeated in the output: D:\cygwin\usr\local\bin;D:\cygwin\bin;D:\cygwin\bin;D:\cygwin\usr\X11R6\bin; . Note that D:\cygwin\bin appears twice, which leaves me with three occurrences of that path in my $PATH. Go figure.escargo 25 Aug 2005 - I was trying to get a Tcl script to run in both ActiveTcl for Windows and Cygwin. I was looking for a good way to distinguish between the two environments. What I finally settled on was looking for the env(term) environment variable, which is set in Cygwin but not used in Windows. (It's not definitive, but it should work for most people.) I used that in a predicate to decide whether to add a path to my auto_path value so I could use packages already installed on Windows in the Cygwin environment.
Changing the title of a Cygwin bash window: just call cmd with an environment setter:
cmd /c title="My new title"
See also
- Building Tcl and Tk with Cygwin
- MinGW gcc & binutils for MSYS
- MSYS a fork of cygwin
- Problems when using Cygwin and the tcl that comes with cygwin [3]
