History window wrong size, can't remember size change

Jun 19, 2008
14
0
I have two monitors, one in portrait mode, the other in landscape. When I open the command history window, it is about the size of my portrait monitor. Unfortunately, its displayed on my landscape monitor which means most of the window is clipped and of no use. If I manually resize the window, it will not use my custom size the next time it pops up, but creates the same mostly-off-screen window again.

Any trick to make the command history window usable in this situation?
 
May 20, 2008
11,520
102
Syracuse, NY, USA
Maybe not the best solution ... you could use

Code:
ConsolePopupWindows=Yes

ConsolePopupWindows are confined to the console. The placement and size settings are in characters relative to the console's client area.

Code:
PopupWinWidth
PopupWinHeight
PopupWinTop
PopupWinLeft
 
May 20, 2008
11,520
102
Syracuse, NY, USA
When you manually change the size, it should be remembered immediately and after TCC is restarted. "ECHO %_ININAME" will tell you where your INI file is. This could be related to write permission in that folder.
 
Jun 19, 2008
14
0
Running as Administrator did not alter the problem. However I note my INI file was last modified in 2020, so maybe permission problem is the correct clue to follow. I'll poke around on that.
 
Jun 19, 2008
14
0
Interesting that the OPTION command seems able to update my INI file with no problem, so maybe that means there is no permission issue. I do specify a non-default INI file on the command-line via the Windows shortcut I use to start TCC. Let's see what happens if I eliminate that...

Started directly, TCC will use a INI file of "C:\ProgramData\JP Software\TCC 27\TCMD.INI" and any changes to the command history window will be retained correctly.

So, seems to have something to do with using a custom INI file location.
 
May 20, 2008
11,520
102
Syracuse, NY, USA
What version of TCC do you run. If I recall correctly, quite a few versions back, TCC put the INI file in a less_than_ideal place.
 
Apr 2, 2011
1,461
10
54
North Carolina, USA
@vefatica - I'm using v25 as i'm still on Windows7. the CHM says (;locating the TCMD.INI)

Take Command Initialization (.INI) Files


Locating the TCMD.INI File



When starting Take Command or a Take Command Console (TCC) shell:



Onestep
If there is an @d:\path\inifile option on the startup command line, Take Command will use the path and file name specified there.


Onestep
Otherwise, the default TCMD.INI file name is used, and the search starts in the directory where the Take Command program file is stored. If the .INI file is not found, Take Command will look in the "%PROGRAMDATA%\JP Software\Take Command 21" directory, and finally in the %LOCALAPPDATA% directory.
 
Jun 19, 2008
14
0
TCC 27.00.18 x64 Windows 10 [Version 10.0.19041.985]

Can anybody else on version 27 confirm that command history window size will not be written to the INI file if you gave it a custom INI on the command-line when starting TCC?
 
May 20, 2008
11,520
102
Syracuse, NY, USA
TCC 27.00.18 x64 Windows 10 [Version 10.0.19041.985]

Can anybody else on version 27 confirm that command history window size will not be written to the INI file if you gave it a custom INI on the command-line when starting TCC?
If that's the case, it may be by design ... TCC thinking "this is a special-purpose INI file; don't mess with it".
 
May 20, 2008
11,520
102
Syracuse, NY, USA
TCC 27.00.18 x64 Windows 10 [Version 10.0.19041.985]

Can anybody else on version 27 confirm that command history window size will not be written to the INI file if you gave it a custom INI on the command-line when starting TCC?
I tried to confirm that but could not. I copied my INI file to v:\, started d:\tc27\tcc.exe @v:\tcmd.ini, changed the foreground from yellow to white, exited, and checked the INI file. The change was saved.
 
Jun 19, 2008
14
0
> If that's the case, it may be by design ... TCC thinking "this is a special-purpose INI file; don't mess with it".

Anything's possible, but that would be incompatible with the fact that I can use the OPTION command to make lots of other changes to the same INI file.

> changed the foreground from yellow to white

Right -- I can get TCC to make a variety of changes to the INI file as well. What I can't do is get TCC to write the specific parameter of PopupWinHeight in the section [4NT] when the INI file was specified on the command line. Do you see that parameter updated in your command-line-specified INI file when you PgUp to open the command history, change the window height, then hit escape to close it?
 
Jun 19, 2008
14
0
Seems the problem might have resolved by erasing the INI file. I migrated from an ancient version of 4NT and maybe some change in what's expected in that file caused bad behavior. In any case, TCC no longer has a mysterious inability to store that particular directive (PopupWinHeight) in the INI file. Now I just have to reproduce all the customizations I had made there.
 
Similar threads
Thread starter Title Forum Replies Date
D Directory History Window with wildcard search Support 3
M Call History popup-window? Support 0
vefatica Ctrl-Enter in command history window? Support 8
nickles Command History Window Support 4
mikea TCC: History window sizes; other config options Support 16
D TCC - Full Screen/History window conflict - workaround? Support 4
J History file load hangs if file has complete garbage in it... Support 1
T How to? retain command history across reboot? Support 6
nikbackm Speeding up the history dialog Support 6
D ParentDirectory does not update directory history Support 6
vefatica Command history search is off Support 7
R Long commands retrieved from command history have blank line when wrapped Support 20
Joe Caverly @HISTORY issues Support 4
vefatica Deleting entries in the command history popup? Support 3
H History and TPipe Oddness Support 3
D History and control-C Support 1
G Console exe up / down history Support 8
D What does the file "..\Everything\Run history.csv" store? Support 5
rps Cmd history recall Support 4
David McClelland Command history loosing entries Support 18
R history features. Support 6
rps How to? Shralias and producing history.sav, alias.sav .. Support 6
M Ctrl-C when using command line history does nothing Support 2
S Debugger Bat file call history Support 9
Charles Dye Ctrl-Shift-Up doesn't update directory history Support 1
vefatica ESC after recalling a command from history Support 3
T TCHelp executable history? Support 2
thorntonpg @blahblah added to history. Support 0
M HISTORY lessons ... Support 0
vefatica The help and IE's history Support 16
D Towards shared (dir-)history lists Support 3
vefatica History recall turns off Quick-Edit Support 4
C history is getting deleted under unknown circumstances Support 9
R V19 - At startup, TCC save directory in the directory history list Support 2
T [TCC 18] Can't read nor write history Support 1
I Possible Bug: History /n Returns Nothing Support 3
jbanaszczyk Lost history Support 4
T history.sav Support 4
T How to? sort history in tcexit.btm Support 22
vefatica OT: Windows console history? Support 7
S directory history locks up TCC Support 3
R In addition to ALIAS /Z and FUNCTION /Z, HISTORY /Z? Support 1
E TCC History popups too small Support 0
C How to? Keeping all history lists Support 4
E Command History not showing on up arrow button Support 8
nikbackm HISTORY /R1 performance Support 3
T Selecting line from popup history without executing Support 8
A How to? Filter history list with unicode chars Support 0
vefatica WAD HISTORY /R, No closing quote? Support 10
vefatica WAD DO /S ... all dirs wind up in the history! Support 12

Similar threads