Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 22 May 2011
Offline Last Active Aug 16 2013 04:33 PM

Posts I've Made

In Topic: DirectX Powered Console Apps

17 September 2012 - 06:10 PM

A new build is out: http://consolium.wordpress.com

The settings bug is fixed, and exiting the underlying console app causes Consolium to exit as well. So, typing 'exit' in cmd.exe will close the window.

Thanks for the feedback!

In Topic: DirectX Powered Console Apps

16 September 2012 - 11:31 AM

You're correct. When I added telnet through control panel using the 'turn off/on windows features' option it seemed to install c:\windows\system32 elnet.exe. But it didn't, there is no such file.

Instead there is a file located (on my system) here:
c:\Windows\winsxs\amd64_microsoft-windows-telnet-client_31bf3856ad364e35_6.1.7600.16385_none_1426830c3ebb712d elnet.exe

And this file is not a normal console command. I would guess its a windows app that does its own console tricks.

I'll try installing what I would hope is a more normal, IO based console app and see if that works, which it should.

Thanks for the heads up on that. As for exit, yes I believe there is more work I can do there, but hadn't implemented it just yet. There are probably several approaches, but the HWND and console handles I had still looked good, so I left it for now and went on to other features :-). But I'll get back to it.

Thanks so much for your feedback, it really helps!

In Topic: DirectX Powered Console Apps

15 September 2012 - 09:06 PM

Thats a great app ^^ Thanks for sharing and keep up the good work.
I have stuff to report
- I cant use "telnet"
- it doesnt check the environment variables - i cant use programs in custom folders that are registered in the "path" variable!
There is a bug in the settings:
- Go the the settings menu
- Change the current theme to some other theme
- now change some text effects (i changed the use glass effect)
- press apply theme
- it will request a new name for the theme to save -> deny (click on x on the right top corner)
- now change to another theme and then back
Another thing to note: "exit" doesnt exit the app!

Thanks, and thanks so much for the feedback.
Did Telnet launch and not work, or was it not found in your path?
As for the path/environment variables, Consolium by deafult launches with:

C:\Windows\system32\cmd.exe /t:0f

If you launch that, it should behave the same way as Consolium. Maybe you are using a different shortcut for your old console, or your old shortcut starts in a different directory? If you were using a VS2010 shortcut, or some other shortcut that runs an environment script at launch, you would need to adjust your Startup Cmd to be the same. For example, if you have a build/compile window shortcut that loads in a script with all sorts of settings specific to your tools. In Consolium you can create as many shortcuts as you want--with different themes and different launch apps, one for cmd.exe, one for VS2010 cmd.exe, and one for other console apps as well.

Also Consolium doesn't know about your path, or even about what you're typing, it's a pass-through to the underlying console app. Consolium just attaches to the console buffer and renders whatever happens to be in it. Input messages are forwarded to the underlying app.

Thanks for the repro on the settings bug...that is a great help. I'll get that fixed straightaway.

As for exit...for now I at least should pop up a UI block that says, "Use X to Close Consolium" to avoid confusion. Thanks for reminding me. The exit keyword is tricky because Consolium doesn't know what you're typing. Maybe you were exiting an FTP session, or exiting a script. Due to the way I attach to the underlying console and retain it's window handle, its not completely apparent when the process has stopped responding. A good feature to add though.

In Topic: Why would this fail?

04 March 2012 - 01:56 AM

In tightening up your memory management it might be helpful to add this line at the start of main(), if you haven't already...it will alert you of leaks and potentially where they are, which might also lead to discovering where the heap is getting corrupted.

#if defined(DEBUG) | defined(_DEBUG)

In Topic: Cmd.exe Redone in DirectX

12 January 2012 - 05:49 PM

Thank you Sepiantum....and thanks for the note and screenshot about the pause command--much appreciated. I'll look into it. It appears <enter> works, but not other keys.

One other related caveat, Tritium won't work with old-fashioned console apps like Midnight Commander, Vi, or Emacs...things that depend heavily on console text APIs to build text menus and navigation. It was designed for typical command line IO.

Tritium *does* implement tab completion, copy/paste (ctrl-x/ctrl-v), ctrl-c for script termination, command history using the arrow keys, and the <cmd>|more construct (or more <file.txt>), command line editing with arrows, home, end, and delete keys, and some other things too.

Thanks for giving it a try and for the feedback!