Giter VIP home page Giter VIP logo

cbucher / console Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bozho/console

2.9K 2.9K 230.0 25.57 MB

This is a modified version of Console 2 for a better experience under Windows Vista/7/8/10 and a better visual rendering.

Home Page: https://github.com/cbucher/console/wiki

License: GNU General Public License v2.0

C++ 90.42% C 5.39% Makefile 0.08% HTML 4.01% CSS 0.03% PowerShell 0.02% Batchfile 0.04%
console consolez shell terminal windows

console's Issues

Support FlashWindowEx()

My (console) application flashes the cmd.exe window using:

FlashWindowEx(GetConsoleWindow(), ...)

Consolez doesn't currently support this; it would be nice if the above code would flash the Tab and/or the Consolez Window.

Resume from hibernation transparency

I've set the transparency to Alpha but when I resume from hibernation it always displays as Glass. Going into the settings shows that it's still set to Alpha, OKing the settings fixes the window.

start with multiple tabs

with non modified version, I can start console2 with multiple tabs.

example:
When I run "C:\Program Files\Console\Console.exe" -t "cmd" -t "msys", tab1 is "cmd" and tab2 is "msys".

However, this modified version can't start with multiple tabs.
Is this bug?

Temporarily maximise tile with keystroke

Firstly, many thanks for creating this fork of console. The tiled windows features were a required feature for me when transferring from "terminator" in a Linux environment.

One feature that I do miss is the ability to temporarily maximise a pane to the entire size of the window. e.g. I have four panes open to different servers, however I run top on one server and need to see more information so I maximise that pane for a few minutes, but drop back later.

I would investigate attempting to add this feature myself, however I don't have visual studio. If anyone has any hints how to get started with cygwin/mingw32 then I'd be most grateful.

Split more flexible

The window split currently only allows one kind of tab, it could be made more flexible to allow more scenarios, like having a msysgit console next to an application log console, and next to a iPython console. Console should allow to group two tabs in a single split, and vice-versa. For the UI, Sublime Text 2 has such split behaviour with tabs which could be mimicked.

This is a nice to have feature to make split windows much more useful. Possibly even have a tab kind starting a pre-defined Windows split.

Support setting cursor size

The custom cursors provided by Console are nice; but they prevent SetConsoleCursorInfo() from working (e.g. change cursor height).

I know there is some inherent conflict here, but maybe there is some middle ground to be reached? E.g. an additional cursor style named "cmd.exe" that would replicate the behavior of the default windows terminal?

Focus follows mouse?

This is the best and closest terminal for windows, being stuck on a corporate laptop I'm missing the functionality of focus follows mouse between split panes with terminator for Linux.

Move by clicking the glass top

Using a pretty minimal UI:

[ ] Show menu
[ ] Show toolbar
[ ] Show status bar
[X] Show tabs
[ ] Caption
[X] Resizeable
[ ] Border

It's not possible to move the window by using the glass top border area (like Chrome allows).

Default background parameters

Hello,

I would like to know if there is a way to define a default background style for all tabs. And so a tab could choose to use the default one or define its custom background style. Just like the color map option.

I guess it's not possible for the moment, but it could be a cool feature. ;-)

Background color not applied

It seems the background color is not applied when set. I have changed the first color but the background stays black.

Tabs (or back to no tabs) "breaks" maximzed Console

With a dual monitor setup (tested up to 1.5.0), and having ConsoleZ maximized and "Hide single tab" set, anytime I create a second tab or delete the second to last tab (so when going from no tabs to tabs and vice versa) it "un-maximizes" ConsoleZ in that it loses shape to the monitor it was maximized to even through the window button in the upper-right still shows as would if maximized (the middle button between _ and x). I have to either "Snap" again to the top or click the middle button twice to get back to true maximize again. It seems to overflow to the left side and below regardless of what monitor it is maximized on (left or right).

I can test at work to see if this is an issue on a single monitor setup. Btw, it appears the ShadowFlare fork of Console does not do this in case that might help.

Great program and additions to the original. Thanks!

Eric

New Environment Variables are Used

OS: Widows 7.

The new environment variables added to the System are not refreshed in the consolez windows, even after restarting the ConsoleZ application. I think the environment variables are refreshed only after rebooting the system.

This is the same issue with Console2 app which is really painful at this time.

Thanks.

Bug: cannot move Console2 partially out of screen

I'm thrilled to find out somebody who has forked and continued that project :)

My biggest gripe with Console2, including your build: you cannot move the Console window partially out of the screen. I don't know if you're still willing to spend time on this project but I would definitely worship you for fixing this :)

Background Color Doesn't Change

The background color would not change from the default black color. I tried it through the settings window and the console.xml file

When starting console from command line with 3 tabs, last tab has white background

27-09-2013 12-19-49 p-m-

Command:

start console -w Debug -t Console -t Console -t Console

This are the configurations I changed:

<?xml version="1.0"?>
<settings>
    ...
    <appearance>
        <font name="Consolas" size="10" bold="0" italic="0" smoothing="2">
            <color use="0" r="0" g="0" b="0"/>
        </font>
        <window title="Console" icon="" use_tab_icon="1" use_console_title="0" show_cmd="1" show_cmd_tabs="1" use_tab_title="1" trim_tab_titles="0" trim_tab_titles_right="0"/>
        <controls show_menu="0" show_toolbar="0" show_statusbar="0" show_tabs="1" hide_single_tab="1" show_scrollbars="0" flat_scrollbars="0" tabs_on_bottom="0"/>
        <styles caption="0" resizable="1" taskbar_button="1" border="0" inside_border="0" tray_icon="0" quake_like="1" jumplist="1">
            <selection_color r="255" g="255" b="255"/>
        </styles>
        <position x="-1" y="-1" dock="-1" snap="-1" z_order="0" save_position="0"/>
        <transparency type="1" active_alpha="195" inactive_alpha="195" r="0" g="0" b="0"/>
        <fullscreen start_in_fullscreen="0" fullscreen_monitor="0"/>
    </appearance>
    ...
    <tabs>
        <tab title="VS2012" use_default_icon="0">
            <console shell="%comspec% /k &quot;&quot;C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools\VsDevCmd.bat&quot;&quot;" init_dir="C:\dev" run_as_user="0" user="" net_only="0"/>
            <cursor style="0" r="255" g="255" b="255"/>
            <background type="0" r="0" g="0" b="0">
                <image file="" relative="0" extend="0" position="0">
                    <tint opacity="0" r="0" g="0" b="0"/>
                </image>
            </background>
        </tab>
        <tab title="Git" icon="C:\Program Files (x86)\Git\etc\git.ico" use_default_icon="0">
            <console shell="&quot;C:\Program Files (x86)\Git\bin\sh.exe&quot; --login --init-file ~\.bashrc -i" init_dir="C:\dev" run_as_user="0" user="" net_only="0"/>
            <cursor style="0" r="255" g="255" b="255"/>
            <background type="0" r="0" g="0" b="0">
                <image file="" relative="0" extend="0" position="0">
                    <tint opacity="0" r="0" g="0" b="0"/>
                </image>
            </background>
        </tab>
        <tab title="Console" use_default_icon="0">
            <console shell="" init_dir="" run_as_user="0" user="" net_only="0"/>
            <cursor style="0" r="255" g="255" b="255"/>
            <background type="0" r="0" g="0" b="0">
                <image file="" relative="0" extend="0" position="0">
                    <tint opacity="0" r="0" g="0" b="0"/>
                </image>
            </background>
        </tab>
        <tab title="Cygwin" icon="C:\cygwin\Cygwin-Terminal.ico" use_default_icon="0">
            <console shell="C:\cygwin\bin\bash --login -i" init_dir="C:\dev" run_as_user="0" user="" net_only="0"/>
            <cursor style="0" r="255" g="255" b="255"/>
            <background type="0" r="0" g="0" b="0">
                <image file="" relative="0" extend="0" position="0">
                    <tint opacity="0" r="0" g="0" b="0"/>
                </image>
            </background>
        </tab>
        <tab title="Mingw" icon="C:\MinGW\msys\1.0\m.ico" use_default_icon="0">
            <console shell="&quot;C:\MinGW\msys\1.0\bin\sh.exe&quot; --login -i" init_dir="C:\dev" run_as_user="0" user="" net_only="0"/>
            <cursor style="0" r="255" g="255" b="255"/>
            <background type="0" r="0" g="0" b="0">
                <image file="" relative="0" extend="0" position="0">
                    <tint opacity="0" r="0" g="0" b="0"/>
                </image>
            </background>
        </tab>
    </tabs>
</settings>

Starting .cmd script

Hi, I cant find any forum or mailinglist so I decide to write here, sorry if this is wrong place:

I just find this program, and want to start my .cmd program instide Console2. Trying to:

C:\utils\Console2>Console.exe -c console.xml -d c:\work\ -r monitor_0.0.2.cmd

or

C:\utils\Console2>Console.exe -c console.xml -d c:\work\ -r start "" /D c:\work\monitor_0.0.2.cmd

but it does not start my program inside Console2 window. What am I doing wrong?

thanks, Petr Laznovsky

BTW: If this is wrong place for such questions, you can contact me at: lazna (at) volny (dot) cz

License?

The license for this isn't explicit. Since it's a fork of Console from SourceForge, one could presume that it is GPLv2, but a simple License file that either 1) explicitly states the license or 2) refers to the license on SF, would be great.

new keyboard handler

When views are grouped, keys are broadcasted to multiple Windows.
There was a problem with some chars like dead keys.

I produced a workaround (version >= 1.09.0.13281). This workaround needs a test on many keyboards and languages.

Please if you test this version, indicates the keyboard language and the result of your test.

The test must use grouped views:

  • Split horizontally (CTRL SHIFT O)
  • Split vertically (CTRL SHIFT E)
  • Verify text, numpad keys, ALT+NUMPAD ASCII Key Combos and dead keys.

64-bit version and PowerShell 64

I downloaded the 64-bit version so that I could run a 64-bit console of PowerShell, but I"m still being given the warning that it's running in 32-bit mode. Any ideas?

Thank you,

tilde breaks grouping

Hi,
Console Z is great, particularly I love its ability to send keyboard to multiples panes.
Unfortunately, when you type a tilda '~', you get several in one pane and none in the others.
Best regards

Windows size not stored

If I close the app the current windows size is not saved. The windows position is saved as expected.

First tried it with the version installed from chocolatey. But it's the same if I just run it from a fresh manual copy. It makes no difference if the config file is saved to the program folder or to the profile.

Running Windows 7 x64. Known issues with this?

Full screen support

Hi,

I added full screen support in the 1.07.0b1 version.
To enter or leave full screen mode you can use the button in toolbar, the menu (View/Full Screen) or the hotkey (F11 by default).

Full screen mode hides toolbar, status bar, menu and tabs. You can show these elements by using the menu (popup menu or pressing alt).

You can report bugs or behavior modification requests in this thread.

Thanks

Fullscreen covers taskbar

Settings to fullscreen the console coveres the Windows taskbar. This might be an option, but it's pretty weird on average (only apps I'd like that are games and browser in complete full-screen mode without status, toolbar, etc.).

So ideally a key could enable a browser-like fullscreen while the normal Win+Up key would just make a standard one keeping the UI layout and not covering the task bar.

Add download mirror

Hi,

I'd like to use this instead of Console2, but the sites the downloads are hosted on are presenting invalid certificates and none of my browsers can get around. Is there any way you can add a mirror or host the downloads in another place?

Thanks!

Hanging tabs on close

I have had an issue with a Powershell module that the owner was not able solve, and I am curious if this shell host could handle it.

The problem is described here:
PowerShell/PSReadLine#17

I would like to suggest adding an option that allows to set the amount of time ConsoleZ waits for an underlying console process to exit. When the user requested to close a tab, a timer would start. If it was elapsed and the underlying process was still running, ConsoleZ would shut it down forcibly.

I have a more conservative suggestion too: ConsoleZ could instantly hide the tab, regardless to the state of the underlying process. Currently the entire ConsoleZ window freezes when PS tab is closed that loaded the mentioned module.

Usage ansicon without install

ansicon works fine with Console2/ConsoleZ (you can use your preferred web search > engine ๐Ÿ˜‰ )

I have searched about it, but almost everybody use it only for local usage and install ansicon with "ansicon -i" which is not my case. I will redistribute my batch worldwide thus I am trying to avoid installation process (because of elevated privileges).

Finaly I change my question in following way: Is there any known way to use Ansicon with Console2 without option "-i"

Feature request: hotkeys to move between "splits" in a tab.

Just discovered being able to assign a hotkey to split a tab vertically and horizontally (or both and then again!) Great feature.

I might be missing something, but it appears I need to use the mouse to move between the "splits". It would be cool to have four setable hotkeys so you could navigate via the keyboard, something like:

Split move left
Split move right
Split move up
Split move down

Thanks for you work on this version of Console, I use it often.

Eric

  • Forgot to add, and I am not a programmer so take into account, but when thinking about this I imagined the code would check from current focus, and if there was a "split" in the direction of the pressed hotkey it would move focus in that directions. If not it would ignore. It could get tricky if say you have a bottom "split" that runs the full vertical length, and the top "split" is further split in half, left and right. If you had focus on the bottom and pressed the "Split move up" (or whatever it is called), it would have to choose either the left or right "split", but I suppose the code in this case could default to the furthest to the left or whatever was best. Anyway, just more thoughts.

Feature request: pseudo-transparency

It would be nice if there was a pseudo-transparency option for this console similar to what has been done to some xterms, putty branches, etc. in the past. By pseudo-transparency, I mean a way in which the text in the console remains completely opaque, but the background has a settable level of transparency. The way windows does alpha transparency isn't that 'real work' friendly because it makes the entire window including the text, window decoration, etc. transparent and text becomes difficult to read.

Command line switch for split views

As a ConsoleZ user
I would like to start ConsoleZ from the command line with n split views on one single instance, for example:
start console -s Console -s Console -s Console
So I can have something like this:
02-10-2013 12-00-22 p-m-

It would be also cool if "split view switch" could play together with -d and -r switches, like -t does, for example: start console -s Console -d C:\dev\github -r "/k Raven"

Suggestion : Add "Run command" option in tabs.

Hello,
I really enjoy the possibility to define custom tabs. It's currently possible to define the type of shell and statup dir, how about a "run command" textfield (equivalent to -r)?

I create many .bat files with SET PATH directives to set up my console environments (I use different ones for PHP, postgresql backup/restore, Java/ant/maven development). It would be great if I could set my tabs to immediately execute one of these scripts when I open them.

Best

shell= cannot use relative paths.

We want to bundle consolez with MSYS2 and provide a console.xml file with a tab for MinGW mode and a tab for MSYS2 mode.

MSYS2 can be placed anywhere in the users' filesystem, however, in console.xml shell= cannot specify a relative path (relative to the executable or xml file would be fine) which we'd need to be able to do to allow this to work.

The error is:

Unable to start ..\msys32\bin\sh.exe -c 'MSYSTEM=MSYS exec /bin/sh --login -i' (reason:The system cannot find the file specified.

Detail Quake-like

There is no tooltip for that feature and no wiki. Would be great to have some details of that it does/mean.

Alt key / menubar

Currently, pressing alt key will switch the menu bar visibility. But this should only happen if menu bar is not permanently on. When menu is permanently turned on (in settings menu), pressing alt should not switch it off [this is the standard windows application behavior].

Adding colors to consoleZ

It's unclear how to add colors to my console. All I currently see is black and white, any idea on how to activate the colors as seen in the documentation?

Command-line parameters broken

-t tab -r command 

Seem to be broken. The command doesn't get executed.

Example of advanced command I run:

-t Git -d "%1"\.. -r "-c \"'%1'\""

Commands as shortcuts-aliases

First of all, great project! I come from original Console 2 and this improved version is amazing.

I always have to repeat a lot of commands over and over again, it would be great if you can implement aliases in this version, so you only have to type the short alias name and press enter or tab. Maybe do something like snippets in Sublime Text 2, imagine a list of snippets like - with an GUI if you want to -:

<name>Some command</name>
<command>some very-large {$1} command -{$2}</command>
<alias>sv</alias>

And next you write in Console 2

sv /one -parameter/two

And it will execute

some very-large /one command -parameter/two

What do you think?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.