diff --git a/0.73_My_PuTTY/terminal.c b/0.73_My_PuTTY/terminal.c index 84a773c..8c2c346 100644 --- a/0.73_My_PuTTY/terminal.c +++ b/0.73_My_PuTTY/terminal.c @@ -3191,8 +3191,8 @@ static inline void term_keyinput_internal( bufchain_add(&term->inbuf, buf, true_len); term_added_data(term); } - if (interactive) - term_bracketed_paste_stop(term); + if (interactive) + term_bracketed_paste_stop(term); if (term->ldisc) ldisc_send(term->ldisc, buf, len, interactive); term_seen_key_event(term); diff --git a/0.73_My_PuTTY/version.h b/0.73_My_PuTTY/version.h index d719ec1..ba5c06a 100644 --- a/0.73_My_PuTTY/version.h +++ b/0.73_My_PuTTY/version.h @@ -1,5 +1,5 @@ #define RELEASE 0.73 #define TEXTVER "Release 0.73" #define SSHVER "-Release-0.73" -#define BINARY_VERSION 0,73,2,1 +#define BINARY_VERSION 0,73,2,3 #define SOURCE_COMMIT "unavailable" diff --git a/0.73_My_PuTTY/windows/MAKEFILE.MINGW b/0.73_My_PuTTY/windows/MAKEFILE.MINGW index 8c3f85a..a0a40c3 100644 --- a/0.73_My_PuTTY/windows/MAKEFILE.MINGW +++ b/0.73_My_PuTTY/windows/MAKEFILE.MINGW @@ -142,7 +142,8 @@ RCFLAGS += -I ../../ -DMOD_PERSO -D$(FDJFLAG) CFLAGS += -DNO_SECUREZEROMEMORY -DCOVERITY -DNO_HTMLHELP CFLAGS += -D$(FDJFLAG) -CFLAGS += -DMOD_PERSO \ +CFLAGS += -D__WINE__ \ + -DMOD_PERSO \ -DMOD_STARTBUTTON \ -DMOD_SAVEDUMP \ -DMOD_DISABLEALTGR \ @@ -179,7 +180,7 @@ CFLAGS += -DMOD_PERSO \ # MOD_INTEGRATED_KEYGEN: intègre le key generator directement CFLAGS_PLINK = -Wall -O2 -D_WINDOWS -DWIN32S_COMPAT \ - -DMOD_PERSO -DPUTTYCYG -DMOD_RECONNECT -DNO_MOD_RUTTY \ + -DMOD_PERSO -DMOD_RECONNECT -DNO_MOD_RUTTY \ -D_NO_OLDNAMES -DNO_HTMLHELP -I../. \ -I../charset -I../windows -I../unix -I../mac -I.\ -I../macosx \ diff --git a/0.73_My_PuTTY/windows/version_minor.txt b/0.73_My_PuTTY/windows/version_minor.txt index d00491f..0cfbf08 100644 --- a/0.73_My_PuTTY/windows/version_minor.txt +++ b/0.73_My_PuTTY/windows/version_minor.txt @@ -1 +1 @@ -1 +2 diff --git a/0.73_My_PuTTY/windows/window.c b/0.73_My_PuTTY/windows/window.c index 9a089ea..1fb45e4 100644 --- a/0.73_My_PuTTY/windows/window.c +++ b/0.73_My_PuTTY/windows/window.c @@ -29,7 +29,11 @@ #include "tree234.h" #ifndef NO_MULTIMON +#ifdef MOD_PERSO #include +#else +#include +#endif #endif #include @@ -3207,8 +3211,23 @@ else if((UINT_PTR)wParam == TIMER_INIT) { // Initialisation if( (conf_get_int(conf,CONF_protocol) == PROT_SSH) && (!is_backend_connected) ) break ; // On sort si en SSH on n'est pas connecte // Lancement d'une (ou plusieurs separees par \\n) commande(s) automatique(s) a l'initialisation + KillTimer( hwnd, TIMER_INIT ) ; + // Fullscreen automatic + if( conf_get_int(conf,CONF_fullscreen) ) { PostMessage( hwnd, WM_COMMAND, IDM_FULLSCREEN, (LPARAM)NULL ) ; } + + // Maximize automatic + if( conf_get_int(conf,CONF_maximize) ) { PostMessage( hwnd, WM_SYSCOMMAND, SC_MAXIMIZE, (LPARAM)NULL ) ; } + + // Affichage d'une note de la session s'il y en a une + if( GetSessionField( conf_get_str( conf, CONF_sessionname), conf_get_str( conf, CONF_folder), "Notes", buffer ) ) + { if( strlen( buffer ) > 0 ) MessageBox( hwnd, buffer, "Notes", MB_OK ) ; } + + // Envoi automatiquement dans le systeme tray si besoin + if( GetAutoSendToTray() ) ManageToTray( hwnd ) ; + + // Si telnet on essaie d'envoyer le password if( conf_get_int(conf,CONF_protocol) == PROT_TELNET ) { if( strlen( conf_get_str(conf,CONF_username) ) > 0 ) { if( strlen( conf_get_str(conf,CONF_password) ) > 0 ) { @@ -3227,21 +3246,9 @@ else if((UINT_PTR)wParam == TIMER_INIT) { // Initialisation } } - // Envoi automatiquement dans le systeme tray si besoin - if( GetAutoSendToTray() ) ManageToTray( hwnd ) ; - - // Maximize automatic - if( conf_get_int(conf,CONF_maximize) ) { PostMessage( hwnd, WM_SYSCOMMAND, SC_MAXIMIZE, (LPARAM)NULL ) ; } - - // Fullscreen automatic - if( conf_get_int(conf,CONF_fullscreen) ) { PostMessage( hwnd, WM_COMMAND, IDM_FULLSCREEN, (LPARAM)NULL ) ; } - - // Affichage d'une note de la session s'il y en a une - if( GetSessionField( conf_get_str( conf, CONF_sessionname), conf_get_str( conf, CONF_folder), "Notes", buffer ) ) - { if( strlen( buffer ) > 0 ) MessageBox( hwnd, buffer, "Notes", MB_OK ) ; } - RenewPassword( conf ) ; + // On envoie l'autocommand if( strlen( conf_get_str(conf,CONF_autocommand) ) > 0 ) { SetTimer(hwnd, TIMER_AUTOCOMMAND, autocommand_delay, NULL) ; } diff --git a/kitty.c b/kitty.c index b8474c3..fa6a074 100644 --- a/kitty.c +++ b/kitty.c @@ -5358,9 +5358,13 @@ void InitWinMain( void ) { if( GetValueData( HKEY_CURRENT_USER, TEXT(PUTTY_REG_POS), "Notes", buffer ) ) { if( strlen( buffer ) > 0 ) MessageBox( NULL, buffer, "Notes", MB_OK ) ; } - // Genere un fichier d'initialisation de toute les Sessions + // Genere un fichier (4096ko max) d'initialisation de toute les Sessions sprintf( buffer, "%s\\%s.ses.updt", InitialDirectory, appname ) ; if( existfile( buffer ) ) { InitAllSessions( HKEY_CURRENT_USER, TEXT(PUTTY_REG_POS), "Sessions", buffer ) ; } + /* Format: registry like + "ProxyUsername"="mylogin" + "ProxyPassword"="mypassword" + */ // Initialise les logs char hostname[4096], username[4096] ; diff --git a/kitty_registry.c b/kitty_registry.c index 0d3f95f..5f76694 100644 --- a/kitty_registry.c +++ b/kitty_registry.c @@ -624,20 +624,19 @@ void CreateFileAssoc() { RegTestOrCreate( HKEY_CLASSES_ROOT, ".ktx", "OpenWithProgids", "kitty.connect.1") ; } -// Vérifie l'existance de la clé de KiTTY sinon la copie depuis PuTTY +// Check for KiTTY registry key. If not, copy from PuTTY one void TestRegKeyOrCopyFromPuTTY( HKEY hMainKey, char * KeyName ) { HKEY hKey ; if( RegOpenKeyEx( hMainKey, TEXT(KeyName), 0, KEY_READ, &hKey) == ERROR_SUCCESS ) { RegCloseKey( hKey ) ; - } - else { + } else { RegCreateKey( hMainKey, TEXT(KeyName), &hKey ) ; RegCloseKey( hKey ) ; #ifndef FDJ RegCopyTree( hMainKey, "Software\\SimonTatham\\PuTTY", TEXT(KeyName) ) ; #endif - } } +}