Yay! Iâve been able to run Far Manager, and it DID work with doskey. Terrific!!
Sure, thereâs a lot of stuff that needs to be taken care of (wild jumps of the cursor, transparent hiding of the underlying console window, colors - yeah, by the way, youâre going to support colors, right?), but thatâs a very good start. Would be an excellent replacement for my current wrapper over cmd.exe ran as a REPL.
Height of the console window doesnât seem to match the height of the pty area in Sublime. Width seems to match.
Far.exe run with /W is generally okay. In the server window Iâm able to scroll the underlying console with PgUp/PgDn. However, when I press PgUp/PgDn in Sublime, nothing happens. No I didnât rebind these keys.
Would it be possible to send mouse clicks to Far? No idea how they detect clicks, but apparently I use clicking pretty often, since I immediately started missing this feature when alpha-testing PTY.
PgUp (VK_PREVIOUS) & PgDown (VK_NEXT) are not simply not present in KEYMAP yet
I will definitely try to add mouse support once basic functions are working correctly. Fortunately .sublime-mousemap give me all the power I need to implement clicks and scrolling. EDIT: (this might be a bit more difficult than I thought, as mousemap seems to ignore âcontextâ argument. ) EDIT2: And thanks to quarnster/SublimeGDB we should be able to have a bit hacky mouse support
Cursor is ignored in win32 version ATM. But Iâve already solved it in OSX/Linux PTY and it should be a 5 minutes feature.
Itâs for debugging only. Also at one point in time I would like to be able to attach multiple Sublime views to the same console process. Having a separate window to interact with lets me check if current implementation correctly handles updates that did not originate in a sublime view.
Very simple mouse support has been added.
Crtl+Alt+LMB and Ctrl+Alt+RMB are sent to windows console as simple LMB & RMB clicks (no long presses or drag&drop)
EDIT:
double click
EDIT2:
console automatically adjusts its size to the available area
most of the functions for beta version on windows are now ready
Known problems:
console_server.py still needs to be started/killed manually
capitalized letters are broken
Short screencast: http://www.youtube.com/watch?v=eaGBVdlqTko)
Iâm was super tired, and didnât know what I was doing but it should be pretty obvious what works and what doesnât. Most of the delays are me thinking what to do next or waiting for buffer to resize (ATM resizing is done each 2 seconds or so))
If you create two regions (one solid, one outline) you can probably get rid of the different color border. That wonât help the rounded issue at the corners, but it would help it look a bit better.
I try to add the repo to package control but it doesnât work.
If I just download the package from github and install it I got
File â.\sublime_plugin.pyâ, line 356, in run_
return self.run(edit, **args)
File â.\sublime_keypress.pyâ, line 11, in run
File â.\process.pyâ, line 276, in send_keypress
File â.\process.pyâ, line 290, in read
TypeError: âNoneTypeâ object is not iterable
I am using Sublime dev build and Windows 7 64 bit.
Yeah, I shouldâve made it more clear that itâs still rather user hostile There was absolutely zero work done in the area of graceful shutdown and/or error handling.
If you get it running, then play with it because youâll have to restart sublime to launch another one (this will obviously be changed before beta to allow multiple consoles, closing processes on tab close, etc. etc.)
TL;DR: Donât know. I didnât profile it yet.
I suspect that applying 500-5000+ color regions can be a bit slow but didnât have time to check yet.
Either way 1-1.5fps seems low. How long is the delay between pressing a key and character showing up in SublimePTY console (w/o far) ?
Yeah, sorry. I updated installation instruction on github.
Ok. Iâll be doing some profiling soon, and since Iâve already switched to UDP*, maybe some async goodness will improve responsiveness.
to any network programmers: I know that my use case is an abomination and I know UDP can theoretically drop packets even over loopback, but for now its connection-less nature and framing makes so many things easier that Iâm willing to accept the risk
hi, and first of all thanks for the plugin which is really amazing!
I have a little problem though: if i quit sublime with pty tab open, when i open sublime again the pty tab opens again without any errors, but it doesnât respond to any input, it just shows bash-3.2$
is this a known problem? Iâm using latest sublime build with lion 10.7.4
Also, a little request: is it possibile to have the terminal open at the root of the current opened project? or at least to a custom folder and not to / ?
thanks in advance for any help
Francesco
AFAIK this is very strange sublime âbugâ. Maybe someone knows why it happens, I donât. TERMINAL views are marked as scratch (v.set_scratch(True)) and most of the time restarting ST2 should close them as well. But from time to time they reappear for no apparent reason.
In other words, if TERMINAL view is visible after Sublime restart, it will be defunct and there are no plans to change this right now.
socket.error: [Errno 10048] Only one usage of each socket address (protocol/network address/port) is normally permitted
Traceback (most recent call last):
File ".\sublime_plugin.py", line 356, in run_
return self.run(edit, **args)
File ".\sublime_keypress.py", line 11, in run
File ".\process.py", line 279, in send_keypress
AttributeError: 'NoneType' object has no attribute 'send_keypress'
Traceback (most recent call last):
File ".\sublime_plugin.py", line 339, in run_
return self.run()
File ".\sublimepty.py", line 26, in run
File ".\process.py", line 264, in start
File "D:\Dropbox\Downloads\Applications\sublimetext2-2195x64\Data\Packages\SublimePTY\console\console_client.py", line 25, in __init__
self._sock.bind((UDP_IP, SEND_UDP_PORT))
File "<string>", line 1, in bind
Youâve tried to run two SublimePTY terminals at the same time or something else is using port 8828 or 8829.
Right now Win32Processâes are not collected when TERMINAL view is closed, so if you start one you have to quickly restart sublime to free the port.
Youâve tried to run two SublimePTY terminals at the same time or something else is using port 8828 or 8829.
Right now Win32Processâes are not collected when TERMINAL view is closed, so if you start one you have to quickly restart sublime to free the port.[/quote]
I went ahead and restarted Sublime.
Tried again and got this error (though Iâm not sure if itâs related, iâll remove tortoisegit and try it again and post back):
Traceback (most recent call last):
File ".\sublime_plugin.py", line 356, in run_
return self.run(edit, **args)
File ".\sublime_keypress.py", line 11, in run
File ".\process.py", line 280, in send_keypress
File ".\process.py", line 296, in read
TypeError: 'NoneType' object is not iterable
Traceback (most recent call last):
File ".\sublime_plugin.py", line 356, in run_
return self.run(edit, **args)
File ".\sublime_keypress.py", line 11, in run
File ".\process.py", line 280, in send_keypress
File ".\process.py", line 296, in read
TypeError: 'NoneType' object is not iterable
Traceback (most recent call last):
File ".\sublime_plugin.py", line 356, in run_
return self.run(edit, **args)
File ".\sublime_keypress.py", line 11, in run
File ".\process.py", line 280, in send_keypress
File ".\process.py", line 296, in read
TypeError: 'NoneType' object is not iterable
Okay. Restarted Sublime again, but before that I made sure console_server.py was running.
Success! Got it working hereâs how it looks. Now, hereâs what Iâm seeing (red grid lines):
Edit: Noticing that it is very slow frame rate as well, but great start! Amazing work as always!
Edit2: I hope you figure out a way to run terminal without having to run cmd prior to starting Sublime. Iâm not sure thatâs possible, but awesome? HELL YES!