dwarning
8a8fcdd93d
timer functions rework - windows part
2024-10-28 17:36:33 +01:00
dwarning
e0d88085f1
timer functions rework - linux part
2024-10-28 14:20:45 +01:00
dwarning
90c5825855
rm ftime for windows build by substitution with clock_gettime
2024-10-20 20:30:12 +02:00
Giles Atkinson
07ce9c788e
Recognise *ng_script_with_params" in the first line of the first
...
program input file to mean that the file is a pure interpreter
script that receives any remaining command arguments.
In winmain.c ensure that the argv array is NULL-terminated
and tidy some code.
2023-11-27 17:06:39 +00:00
Holger Vogt
fe3222a118
Add an option nginfo to enable a status report during simulation
...
(currently available only with MS Windows GUI version).
2023-07-31 14:26:40 +02:00
Holger Vogt
b9014068e7
WinGUI: Add a button 'Stop' to stop a simulation in intercative
...
or control mode. ngspice enters interactive mode and waits for user
commands. Simulation result vectors are available up to the
(time) point of stopping. Simulation may continue by command
'resume', however now in interactive mode, a control flow stays
interrupted.
2022-10-07 13:04:25 +02:00
Holger Vogt
1f54a6add3
WinGUI: Make the text output from com_hardcopy available immediately
...
by call to function UpdateMainText.
Enable color for postscript output.
2021-03-14 15:31:45 +01:00
Holger Vogt
2a2a488f7d
If 'set ngdebug', and if transient simulation,
...
create a vector speedcheck in the tran plot
which contains the real time versus simulated time,
to check for obstacles during the course of the
transient simulation. If command 'save' is given,
one has to add speedcheck to obtain this vector.
2021-01-20 16:47:27 +01:00
Holger Vogt
7889b5d540
re-add the icon to the top header of the ngspice GUI
2020-04-05 10:22:13 +02:00
Holger Vogt
258c01d9bb
Replace swprintf by MultiByteToWideChar to correctly
...
translate from utf-8 to wchar_t
2020-03-15 08:51:18 +01:00
Holger Vogt
4bcb38abb5
clean up winmain.c
2020-03-15 08:51:18 +01:00
Holger Vogt
8d9d40d621
enable compiling wide char with MINGW
2020-03-15 08:51:18 +01:00
Holger Vogt
08a2f04e8d
make code compile with MINGW (preliminary)
2020-03-15 08:51:17 +01:00
Holger Vogt
c4045d371d
single space indent in analysis window
2020-03-15 08:51:13 +01:00
Holger Vogt
921058cb39
fix remaining bugs when EXT_ASC is defined
2020-03-15 08:51:09 +01:00
Holger Vogt
6e0b631492
Regain static behaviour, keep removing compiler warning
2020-03-15 08:51:09 +01:00
Holger Vogt
3a8e3d130c
update and unify font handling
2020-03-15 08:51:08 +01:00
Holger Vogt
e7022f7fae
utf-8 string length determined by strlen
2020-03-15 08:51:08 +01:00
Holger Vogt
93be5bab0c
increase buffer size, send text to string window,
...
retrieve the correct number of byte after utf-8 conversion.
Answering to a promt (e.g. after command 'hardcopy') does not
yet do.
2020-03-15 08:51:07 +01:00
Holger Vogt
510b1865b4
Re-sort wide char variable definitions.
...
add utf-8 ... utf-16 conversion.
Strings in history buffer shall remain utf-8.
History buffering is not yet working.
2020-03-15 08:51:07 +01:00
Holger Vogt
7c0b72c387
prevent compiler warnings
...
enable short GUI interaction from within spfactor.c
2020-03-15 08:51:06 +01:00
h_vogt
dbd0a5743a
Enable utf-8 and UNICODE for string handling.
...
preprocessor flag EXT_ASC resets handling to old behaviour.
Add utf-16 wide char to all Windows string i/o.
Add translation between utf-8 and utf-16.
Add angle to fcn DevDrawText.
2020-03-15 08:51:04 +01:00
Holger Vogt
c77da1870d
Fixed compiler warnings related to const, unreachable code, and an empty translation unit.
2020-03-15 08:51:03 +01:00
Holger Vogt
b1be546939
User expects an empty input line, not a text that has to be deleted befopre writing
2020-03-15 08:50:57 +01:00
Holger Vogt
3ab2c6468c
raise time for immediate output, to catch some more information
2019-08-18 10:52:36 +02:00
Holger Vogt
fac46c0bfd
Speed up the text output in Windows GUI:
...
The stream is pushed to the display only every 30 milliseconds.
For the first 200ms the stream is still pushed for every line.
2019-08-13 23:34:16 +02:00
Holger Vogt
6ac67c2285
make GUI more responsive. Prevent output freezing
...
if large data volumes are sent to the display
2019-08-13 23:33:59 +02:00
Jim Monte
3874916948
[PATCH #56 ] New history buffering
2019-08-13 23:30:05 +02:00
Jim Monte
9e5b0e8f82
[PATCH #58 ] Made annotations of WinMain() agree with its prototype
2019-08-13 23:29:34 +02:00
Jim Monte
8f2677438b
[PATCH #57 ] Fixed several issues with win_x_fread()
2019-08-13 23:29:27 +02:00
Jim Monte
ea81da2b01
[PATCH #55-1] Fixed some compiler warnings added by Visual Studio 2019
2019-08-13 23:29:13 +02:00
Jim Monte
ba60c4e8a9
[PATCH #54 ] Fixed bug with processing of user input when the user input
...
size equals or exceeds the allowed amount. A 1-byte buffer overrun resulted
in incorrect processing of the buffer returned from the window supplying user
input which lead to an infinite loop.
2019-08-13 23:29:06 +02:00
Jim Monte
0fd5b0fd80
[PATCH #51 ] Added scrolling to input window
2019-08-13 23:28:16 +02:00
Holger Vogt
9f40c2b584
add an icon to MS Windows VC exe
2018-12-17 23:03:27 +01:00
h_vogt
67e06bb4ac
winmain.c, bug fix, #315 ngspice under windows 10 shows exception on quit
...
https://sourceforge.net/p/ngspice/bugs/315/
longjmp() creates segfault under Windows 10 (VS and MINGW)
somewhere when MainWindowProc() is processing the WM_CLOSE message.
Instead of raising SIGINT, directly call cp_doquit().
return 0 if "askquit" is set and the user declines to "quit".
This continues the simulation, if still active.
2017-04-09 12:46:38 +02:00
h_vogt
78ea2e1523
winmain.c, remove of fcn 'read' in Windows
2017-02-22 19:36:34 +01:00
rlar
2bafe98f17
winmain.c, etc, cleanup
2017-02-22 18:50:40 +01:00
rlar
90a205d36d
winmain.c, etc, whitespace cleanup
2017-02-22 18:50:03 +01:00
rlar
3a9ace82bb
winmain.c, etc, cleanup, rewrite obfuscated symbols
...
substitute in the whole source code:
"__stream" --> "stream"
"__pos" --> "pos"
"__s" --> "s"
"__n" --> "n"
"__c" --> "c"
"__format" --> "format"
"__ptr" --> "ptr"
"__size" --> "size"
"__path" --> "path"
"__mode" --> "mode"
"__offset" --> "offset"
"__whence" --> "whence"
"__arglist" --> "arglist"
"__buf" --> "buf"
"__fp" --> "fp"
"f_c_l_o_s_e" --> "win_x_fclose"
"f_e_o_f" --> "win_x_feof"
"f_e_r_r_o_r" --> "win_x_ferror"
"f_f_l_u_s_h" --> "win_x_fflush"
"fg_e_t_c" --> "win_x_fgetc"
"f_g_e_t_p_o_s" --> "win_x_fgetpos"
"fg_e_t_s" --> "win_x_fgets"
"fp_r_i_n_t_f" --> "win_x_fprintf"
"fp_u_t_c" --> "win_x_fputc"
"fp_u_t_char" --> "win_x_fputchar"
"fp_u_t_s" --> "win_x_fputs"
"f_r_e_a_d" --> "win_x_fread"
"f_r_e_o_p_e_n" --> "win_x_freopen"
"fs_c_a_n_f" --> "win_x_fscanf"
"f_s_e_e_k" --> "win_x_fseek"
"f_s_e_t_p_o_s" --> "win_x_fsetpos"
"f_t_e_l_l" --> "win_x_ftell"
"f_w_r_i_t_e" --> "win_x_fwrite"
"g_e_t_c" --> "win_x_getc"
"g_e_t_char" --> "win_x_getchar"
"g_e_t_s" --> "win_x_gets"
"p_e_r_r_o_r" --> "win_x_perror"
"p_r_i_n_t_f" --> "win_x_printf"
"p_u_t_c" --> "win_x_putc"
"p_u_t_char" --> "win_x_putchar"
"p_u_t_s" --> "win_x_puts"
"r_e_a_d" --> "win_x_read"
"s_c_a_n_f" --> "win_x_scanf"
"ung_e_t_c" --> "win_x_ungetc"
"vfp_r_i_n_t_f" --> "win_x_vfprintf"
"vfs_c_a_n_f" --> "win_x_vfscanf"
"vp_r_i_n_t_f" --> "win_x_vprintf"
"vs_c_a_n_f" --> "win_x_vscanf"
2017-02-10 19:50:42 +01:00
rlar
93d040703d
winmain.c, drop artefact "fgetchar", cleanup/emphasise disabled "freopen"
2017-02-10 18:44:44 +01:00
rlar
69537a7899
winmain.c, fs_c_a_n_f(), bug fix, and cleanup "minimise"
2017-02-09 22:06:07 +01:00
rlar
0932120a7f
special cases of the char variants of the <ctype.h> family
2016-03-09 20:24:36 +01:00
h_vogt
8b8f275645
defines.h, winmain.c, .h: fix --with-wingui for CYGWIN
2013-12-31 16:08:24 +01:00
h_vogt
d7e291c53a
HAS_WINDOWS --> HAS_WINGUI
...
allow compilation on MS Windows without GUI
2013-12-31 12:56:57 +01:00
h_vogt
92a529f15c
winmain.c: print buffer enlarged
2013-12-31 12:54:43 +01:00
rlar
0beb95757f
cancer of the semicolon
2012-08-07 21:20:36 +02:00
h_vogt
fe86d3d5c7
Enable ctrl-c to interrupt a simulation also for Windows GUI
2012-06-12 21:26:27 +02:00
h_vogt
fc7692a896
outheap removed
2012-02-11 12:50:44 +00:00
rlar
4ca58067a2
#2/6 config.h --> ngspice/config.h, #include's
2011-12-27 11:33:01 +00:00
rlar
0d7f64657c
move stringutil.h --> src/include/ngspice
2011-12-17 17:16:29 +00:00