Patryk Obara
bb2088eb72
Fix a number of effc++ warnings in shell code
2019-12-27 07:34:48 +01:00
Patryk Obara
64949a6e8c
Print volume/drive label in 'dir' cmd
...
This is in line with any other implementation of 'dir' command. It's
also very useful for identifying e.g. which floppy is currently mounted.
MS-DOS and cmd.exe display Volume Serial Number, but it emulating it in
DOSBox doesn't seem to be very useful.
2019-12-27 07:34:48 +01:00
Patryk Obara
3eaabb41c1
Fix output formatting of 'dir' command
...
Adapt to 'pause' command working correctly (assuming the terminal height
is 25, this will need further adjustments for supporting 80x50 and
different modes).
Adjust "intro" by 1 space to make formatting the same as MS-DOS 'dir'
command - this makes intro not "merge" visually with the files listed.
Adjust placing of files and directories counters, to make it resemble
most 'dir' implementations.
Count intro lines for purpose of correct pagination with 'dir /p'.
Skip counting not printed lines with 'dir /b /p'.
Output of 'dir /w /p' is still broken, but fixing it will require more
invasive changes.
Fixes : #75
2019-12-23 21:52:37 +01:00
Patryk Obara
b0cdfa5161
Do not print newline after every command
...
This newline is already ommitted from batch files and noecho commands,
this change makes the behaviour consistent in interactive mode.
Additional newline is a behaviour inherited from MS-DOS, and even still
visible in Windows cmd.exe, but all modern DOS implementations,
PowerShell, unix terminals, etc - they all prefer consistent behaviour
over addtional newline. Also, there's no point in wasting 4% of screen
estate just to show empty line.
This fixes CLS command, which is now able to properly clean the screen
and place prompt in the first line.
2019-12-23 21:52:37 +01:00
Patryk Obara
c20579a835
Display newline after key was pressed in 'pause' cmd
...
Move newline from the string message to the WriteOut in command itself.
This makes the PAUSE command behave like the original, which is
important for commands like DIR /P.
2019-12-23 21:52:37 +01:00
Patryk Obara
5f9ac5eeab
Remove code ifdefed for OS/2
...
Cleanup before replacing SDL1.2 with SDL2.
OS/2 support was introduced in DOSBox in March 2006. OS/2 reached EOL
in December 2006.
As of 2019, OS/2 is being continued by proprietary 32-bit only ArcaOS,
although there is no official SDL2 support, despite pledges from SDL2
maintainers.
2019-12-09 16:27:11 +01:00
Patryk Obara
59edc4d9b5
Change the length of version field in infobox
...
Otherwise, infobox looks broken when version string has more
than 8 characters.
2019-11-29 06:27:14 +01:00
Peter Veenstra
a919e33aec
Pick some lowhanging fruit. (some memory leaks and unused variables)
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4264
2019-10-01 12:11:09 +00:00
Peter Veenstra
bec0e79890
Don't remove bytes from autoexec.bat when changing settings from autoexec.bat, but replace them instead. This way the location stays valid.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4212
2019-04-20 13:55:35 +00:00
Peter Veenstra
eb26b9a58e
Change first_shell to be DOS_Shell instead of Program. Makes future manipulations easier.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4211
2019-04-20 13:48:55 +00:00
Peter Veenstra
1fbaff47fc
Update year and address of FSF
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4183
2019-01-25 14:09:58 +00:00
Peter Veenstra
5bb10db88b
Time keeps on ticking
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4109
2018-05-29 12:58:58 +00:00
Peter Veenstra
80740117b9
Take length in consideration before moving the echo off upwards.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4106
2018-05-24 18:09:21 +00:00
Peter Veenstra
85789a06da
Fix echo off being written twice. Attempt to make the line endings in the generated autoexec.bat all DOS style line endings.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4105
2018-05-22 15:18:45 +00:00
Peter Veenstra
6cf39c1fc6
Years update
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4021
2017-05-30 11:35:08 +00:00
Peter Veenstra
a3345eed24
Spaces in LOG_MSG and some at the end of the line.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3999
2016-10-02 14:12:32 +00:00
ripsaw8080
4555aa279d
Implement INT 2E -- fixes Gold of the Aztecs and a few other games. Also, stop writing uninitialized junk into first shell's command tail at startup.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3979
2016-04-05 05:48:00 +00:00
Peter Veenstra
cb28976df6
More robust parsing, so that dosbox -fullscreen A.EXE works
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3934
2015-09-08 13:46:26 +00:00
ripsaw8080
5a748e5cbb
Display a simple startup message for sub-shells instead of the welcome banner.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3930
2015-08-17 15:06:28 +00:00
Peter Veenstra
017fda9ba0
Give some hints when we are on Z:\, but not on other drives.
...
Always return the directory for the drive if the drive exists.
Fixes/improves bug 390.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3888
2015-01-09 10:50:17 +00:00
ripsaw8080
56c3a4be9c
Make the shell's internal run loop more like the command prompt run loop. Fixes CALLed batch files when executed in subshells, such as with Norton/Volkov Commander. Reference SourceForge bug #394 .
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3885
2015-01-06 18:32:47 +00:00
Peter Veenstra
0f4c92ca32
Year update.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3878
2015-01-06 14:40:32 +00:00
Peter Veenstra
ee0367653b
stdprn is now really prn and you can't read from it. Fixes a weird runtime that reads the PRN handle.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3858
2014-01-12 13:43:47 +00:00
Peter Veenstra
2fea508f7f
Year update
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3812
2013-01-15 09:03:13 +00:00
Peter Veenstra
e60a44755a
Add composite lite patch by VileRancour/reenigne.
...
Thanks to everybody who participated in the discussion on the subject.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3804
2012-11-28 18:35:35 +00:00
Peter Veenstra
ff538caa62
Fix handling of a CDROM image command line option with respect to the -securemode flag
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3779
2012-03-28 15:26:29 +00:00
Peter Veenstra
a7af902f2f
Even our comments and status messages have less bugs now (jomalin)
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3764
2011-12-08 12:47:04 +00:00
Peter Veenstra
6fc206193e
Allow command /Cdir
...
Fix quoting so that command /c mount d "/tmp/a b" works
This breaks command /c "dir", but this doesn't work on real DOS either.
Let's hope everything still works.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3728
2011-06-24 21:02:05 +00:00
Ralf Grillenberger
a5ee614503
- Add midnight/next day increment
...
- Add date and time commands (functionality limited)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3715
2011-06-05 18:28:00 +00:00
Peter Veenstra
87cff4ee86
less is more
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3707
2011-05-05 09:30:33 +00:00
Peter Veenstra
999f33de27
Update year. Remove CVS tags
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3700
2011-04-26 09:34:55 +00:00
Peter Veenstra
901e771bfa
Add patch 3027944 from ripsaw: Subst /d
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3628
2010-08-07 18:12:48 +00:00
Peter Veenstra
8f9bd1b72c
Reduce focus on frameskip, increase focus on control.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3581
2010-04-15 18:19:21 +00:00
Peter Veenstra
f3c1902dab
Add green/amber hercules mode emulation support. (Thanks ripsaw and h-a-l-9000)
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3579
2010-04-15 13:22:21 +00:00
Peter Veenstra
a78b2c4f8b
Update year
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3548
2010-02-11 13:36:50 +00:00
Peter Veenstra
d42127638b
Allow redirection of the form what c<install.dat>temp used in sierra installers.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3544
2010-02-06 08:35:28 +00:00
Peter Veenstra
b8dd53b7fc
Include debian general spelling suggestions.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3530
2010-01-11 10:09:46 +00:00
Peter Veenstra
f88bda19de
Enhance commandline support for long filenames with images. Add support for ISO/CUE. (dank je ronald)
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3517
2009-12-19 15:35:15 +00:00
Peter Veenstra
7f19fe7e3f
Fix GTA installer.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3503
2009-11-30 08:21:38 +00:00
Sebastian Strohhäcker
934dff7731
symmetrically beautify the memory start to work around some more buggy installers/games
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3441
2009-07-08 20:05:41 +00:00
Peter Veenstra
7f67bfd3ee
ASCII advertising. ;)
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3386
2009-05-14 18:44:54 +00:00
Peter Veenstra
d8266a6a41
revise switchToLongcmd a bit. allow execution of mount/imgmount from menus and such.(beta3)
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3326
2009-03-23 10:55:36 +00:00
Peter Veenstra
bb4141a03a
headers
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3279
2009-02-01 14:07:05 +00:00
Sebastian Strohhäcker
a9f0ec5b10
hercules updates by hal (herc mode/status reg, herc textmode drawing), fixes blockout
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3256
2009-01-11 18:22:59 +00:00
Sebastian Strohhäcker
4214b133a0
fix shell file create attribute setting for output redirection (thanks to skatz for noticing)
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3222
2008-09-20 14:51:53 +00:00
Sebastian Strohhäcker
c994a9a25e
fix some msvc64bit warnings
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3217
2008-09-07 10:55:16 +00:00
Sebastian Strohhäcker
a94ef4eddc
move first shell's psp/environment into low dos memory, uses complete MCBs for them (gold aztecs doesn't like it otherwise)
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3216
2008-09-06 14:47:15 +00:00
Peter Veenstra
0c788c8d3a
Remove unused variable
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3200
2008-08-11 12:52:36 +00:00
Sebastian Strohhäcker
cd0394d692
change VER to display the sub-version in an easier readable form (6.2->6.02, 6.20->6.20) to avoid confusion
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3196
2008-08-10 18:33:30 +00:00
Peter Veenstra
6d1979bb9d
Make max 50% in autoexec.bat possible.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3186
2008-07-27 20:12:28 +00:00