windows-console

Is it possible to fake windows console api?

旧街凉风 提交于 2019-12-06 19:18:06
问题 I've written a ssh server in c# and I thought it'd be neat to hook up powershell as a shell. I've tried 2 methods to get this to work properly but both are far from perfect. Here's what I've tried: Launch powershell.exe and redirect it's std(in/out). This doesn't work well since powershell.exe detects it is redirected, changes it's behaviour. What's more, it expects input data on the stdid, not commands. So it uses the console api to read commands. Host powershell in a "wrapper" application.

How to remove execution related text from output window of Code::Blocks

喜欢而已 提交于 2019-12-06 15:40:09
问题 I am using Code::Blocks for programming in C. When I compile my program and execute it, the output window (i.e.. Windows Command prompt) displays some execution related text, these texts are not of use to me right now and dont want them to appear(see text below). Hello, World! Process returned 0 (0x0) execution time : 3.920 s Press any key to continue. I tried to change the settings in Code::Blocks but couldn't find any settings related to the output window and also I dont want the text

ANSI color Set Graphics Rendition breaking mid-batch and working after it proceeds

一曲冷凌霜 提交于 2019-12-06 07:59:42
问题 I've got a batch that has a sub-section which iterates through lines of a file for EXEs to try running, and then the batch sorts the EXEs based on their exit codes. For some reason, the ANSI SGR seems to break or echo the literal text after setting the graphics rendition of the previous one instead of re-rendering it. I went back to re-reference this question and the original documentation, but I'm not sure why this specific area of my batches is mangling the ANSI coloration inside the

Multiple console windows from one Win32 console app

僤鯓⒐⒋嵵緔 提交于 2019-12-06 07:39:32
I've written a program based on an empty Win32 console app in VS2008 running on Win7 64bit. The program is entirely menu based spawning from a main.cpp which only calls external functions that lead to other interfaces based on the users needs (e.g. cashier, inventory, report, etc...). What I would love to do is provide a new console window for each interface. Ideally it would close the main menu upon invoking any other interfaces and so on as the user progresses through its functions, including reopening the main menu when necessary. The basis for doing it this way is that I'm starting a new

Getting rid of Python console in wxPython under Windows [duplicate]

好久不见. 提交于 2019-12-06 06:34:48
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: How can I hide the console window in a PyQt app running on Windows? How to get rid of the console that shows up as standard output when running wxPython programs in Windows? 回答1: Others have already suggested of renaming from py to pyw. If you instead refer to Output redirection pass redirect=True when creating the wx.App class. See for instance http://www.wxpython.org/docs/api/wx.App-class.html The signature of

Python terminal window popping up at pygame app run [duplicate]

别说谁变了你拦得住时间么 提交于 2019-12-06 05:30:52
This question already has answers here : Closed 7 years ago . Possible Duplicate: How can I hide the console window in a PyQt app running on Windows? When I double-click in Windows on my pygame app (.py) the desired pygame window opens, but always along with it, an empty terminal window pops up. How can I prevent this? Change the file extension of your file from .py to .pyw . See Using the Python Interpreter : 2.2.2. Executable Python Scripts The Python installer automatically associates .py files with python.exe so that a double-click on a Python file will run it as a script. The extension

Windows 10 console VT-100 escape sequences

送分小仙女□ 提交于 2019-12-05 03:21:38
问题 I'm playing around with the new (limited) support for VT-100 escape sequences within the Windows 10 console. The supported sequences are documented at https://msdn.microsoft.com/en-us/library/windows/desktop/mt638032(v=vs.85).aspx. I'm using batch files to test out the features, and I am able to get almost all of the documented features to work. But I am having trouble with the "Viewport Positioning" sequences (scroll up/down) - In my hands they are totally disfunctional (no effect) ESC[<n>S

git help in Windows command prompt

杀马特。学长 韩版系。学妹 提交于 2019-12-05 02:44:34
The git help command on Windows ( msysgit distribution) spawns web browser each time I run it. I tried git help -m which reports "No manual entry for ..." and git help -i which says "info: Terminal type 'msys' is not smart enough to run Info." The same happens in bash under Cygwin . Is there any sensible way to get light-weight help in cmd terminal? Update for Git 2.x (June 2017, Git 2.13.1) You still don't have man: > git -c help.format=man help add warning: failed to exec 'man': No such file or directory fatal: no man viewer handled the request Same for git <verb> --help . git <verb> -h does

CreateProcess does not create additional console windows under Windows 7?

女生的网名这么多〃 提交于 2019-12-05 02:27:16
问题 I am trying to run a process using CreateProcess(...) and run it independently in a seperate console window. I can achieve this using the system("...") function, but I prefer CreateProcess since it gives me the possibility to specify environment and working directory, get a handle to the process, as well as piping stdin/out when I need to. All I find on the internet is the inverse problem, which is people having additional console windows and wanting to get rid of them! It appears it was the

SSH.NET CreateShellStream()

耗尽温柔 提交于 2019-12-04 22:32:16
I am building an application, SWSH, which is a ssh client. I am having trouble using the CreateShellStream() function. My code: using (var ssh = new SshClient(ccinfo)) { var keepgoing = true; ssh.Connect(); string terminalName = "xterm-256color"; uint columns = 80; uint rows = 160; uint width = 80; uint height = 160; // arbitrarily chosen int bufferSize = 500; IDictionary<Renci.SshNet.Common.TerminalModes, uint> terminalModeValues = null; var actual = ssh.CreateShellStream(terminalName, columns, rows, width, height, bufferSize, terminalModeValues); //Read Thread new System.Threading.Thread(()