running_tse_under_wine.txt --copyright-- Copyright 2008 (C) Tranzoa, Co. All rights reserved. --url-- http://www.tranzoa.net/~alex/public_stuff/running_tse_under_wine.txt --bodstamps-- August 4, 2008 bar --eodstamps-- What I did to get wineconsole to run tse console version 3 (I bought, but never moved to 4, as 3 works fine for me.) ---------------------------------------------------------------- Turn off the Ubuntu/linux's Preferences|Mouse|General|Locate Pointer This is the "Show position of pointer when the Control key is pressed" checkbox. Otherwise no control key makes it to wine. Unless that bug is fixed. (google the bug) Note: Everything I do revolves around a USB drive (or laptop or whatever) called "flight". Console version of tse is C:\bin\q.exe GUI version (which I don't use and haven't tried to run) is C:\qg.exe Point the wine C drive bin directory to (I:) flight's bin directory cd .wine/drive_c ln -s ~/flight/bin bash$ winecfg Drives I: ~/flight/tse32 Note: You may need to edit the system.reg or user.reg file for this. I forget which one. And/or, better, this is dosdrives or something in "wine regedit". bash$ wine regedit HKEY_CURRENT_USER Environment This doesn't exist, by default. TSELOADDIR=I:\tse32 Makes syntax highlighting work. TSEPATH=I:\tse32 Uses the I drive tse32 dir, where all the macros, etc. are. Tediously, I edited the .wine/user.reg file to find the wineconsole window size that both worked and that tse filled. HKEY_CURRENT_USER Console WindowSize = 5500c1 ScreenBufferSize = 5500c1 That is, hite of 85, width of 193. That depends upon my screen, of course. I pulled the icon from qg.exe (the tse GUI version, as named in my /bin) using an old windows program from somewhere. gimp converted it to an .xpm file, which I double-clicked on the shortcut's icon picture to reassign to the .xpm file. ---------------------------------------------------------------- TODO: The colors don't match 'tween windows and wine. So the tse color chart is bogus under wine. Specifically, the text color of blocks and selected menu items is white under wine, but black under windows. Since whole sections of the chart are wrong, there will be more problems with 'em. tse/wine don't work to copy/paste text. Unicode coming in to tse, probably. Outbound, linux or FF (which I tested the paste to) goes nuts and locks up for a while. The linux desktop shortcut puts the dragged-to-it file name at the end of the command line following a space. This shortcut wants and needs no space following Z: at the end of the command line, "wineconsole ~/flight/bin/q.exe Z:" Running q from bash shells. alias q to wineconsole ~/.wine/drive_c/bin/q.exe Z:... Z:.... where .... is each file name somehow absoluted and with a Z: put in front of 'em. Problem, of course, is knowing the diff 'tween file name and command line options. Don't put Z: in front of -options. Forward slash is a problem, but since tse takes -options that's ok. Setting the startup directory for q - basically cd'ing to a drive/dir for wineconsole external to wineconsole. There is probably an environment variable or command line option to do this, but I've not looked or it. Ideally, it would be overridden by the current directory of the bash shell that runs q.exe. The mouse cursor must be over tse for keysrokes to go to tse. F9 - for tsegrep, including getting the paths right ---------------------------------------------------------------- Wine suggestions: Minimized window at the bottom of the wine screen should double-click to Restore. Windows moved so that they extend beyond the wine window cause painting ugliness. Minimize / restore 'em and they are ok. Two minimized windows seem to have their minimized icons in the same place. Some mechanism for finding files that don't have Z: or any drive on them. Out of band ENV variable set on a per-run basis - that can be used in the command line? Control ESC doesn't seem to switch windows, but I've got caps lock xmodmap mapped to control and left control mapped to alt, and I've got esc and tilde swapped, but no combination works. No surprise as the whole linux/gnome/x keyboard situation is a nightmare. Why doesn't click and right click on the wine desktop do anything? Go in to winecfg? Pop a run-box with text entry of command line and a history list? ---------------------------------------------------------------- eof ----------------------------------------------------------------