fix indent
This commit is contained in:
18
terms.c
18
terms.c
@@ -1,4 +1,4 @@
|
|||||||
/* $Id: terms.c,v 1.35 2002/11/15 15:36:48 ukai Exp $ */
|
/* $Id: terms.c,v 1.36 2002/11/15 15:37:33 ukai Exp $ */
|
||||||
/*
|
/*
|
||||||
* An original curses library for EUC-kanji by Akinori ITO, December 1989
|
* An original curses library for EUC-kanji by Akinori ITO, December 1989
|
||||||
* revised by Akinori ITO, January 1995
|
* revised by Akinori ITO, January 1995
|
||||||
@@ -98,8 +98,8 @@ enable_win9x_console_input(void)
|
|||||||
{
|
{
|
||||||
if (isWin95 && isWinConsole && isLocalConsole &&
|
if (isWin95 && isWinConsole && isLocalConsole &&
|
||||||
hConIn == INVALID_HANDLE_VALUE) {
|
hConIn == INVALID_HANDLE_VALUE) {
|
||||||
hConIn = CreateFile("CONIN$", GENERIC_READ|GENERIC_WRITE,
|
hConIn = CreateFile("CONIN$", GENERIC_READ | GENERIC_WRITE,
|
||||||
FILE_SHARE_READ|FILE_SHARE_WRITE,
|
FILE_SHARE_READ | FILE_SHARE_WRITE,
|
||||||
NULL, OPEN_EXISTING, 0, NULL);
|
NULL, OPEN_EXISTING, 0, NULL);
|
||||||
if (hConIn != INVALID_HANDLE_VALUE) {
|
if (hConIn != INVALID_HANDLE_VALUE) {
|
||||||
getch();
|
getch();
|
||||||
@@ -187,22 +187,22 @@ read_win32_console(char *s, int n)
|
|||||||
|
|
||||||
#endif /* SUPPORT_WIN9X_CONSOLE_MBCS */
|
#endif /* SUPPORT_WIN9X_CONSOLE_MBCS */
|
||||||
|
|
||||||
HWND GetConsoleHwnd(void)
|
HWND
|
||||||
|
GetConsoleHwnd(void)
|
||||||
{
|
{
|
||||||
#define MY_BUFSIZE 1024
|
#define MY_BUFSIZE 1024
|
||||||
HWND hwndFound;
|
HWND hwndFound;
|
||||||
char pszNewWindowTitle[MY_BUFSIZE];
|
char pszNewWindowTitle[MY_BUFSIZE];
|
||||||
char pszOldWindowTitle[MY_BUFSIZE];
|
char pszOldWindowTitle[MY_BUFSIZE];
|
||||||
|
|
||||||
GetConsoleTitle(pszOldWindowTitle, MY_BUFSIZE);
|
GetConsoleTitle(pszOldWindowTitle, MY_BUFSIZE);
|
||||||
wsprintf(pszNewWindowTitle,"%d/%d",
|
wsprintf(pszNewWindowTitle, "%d/%d",
|
||||||
GetTickCount(),
|
GetTickCount(), GetCurrentProcessId());
|
||||||
GetCurrentProcessId());
|
|
||||||
SetConsoleTitle(pszNewWindowTitle);
|
SetConsoleTitle(pszNewWindowTitle);
|
||||||
Sleep(40);
|
Sleep(40);
|
||||||
hwndFound = FindWindow(NULL, pszNewWindowTitle);
|
hwndFound = FindWindow(NULL, pszNewWindowTitle);
|
||||||
SetConsoleTitle(pszOldWindowTitle);
|
SetConsoleTitle(pszOldWindowTitle);
|
||||||
return(hwndFound);
|
return (hwndFound);
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned long
|
unsigned long
|
||||||
|
Reference in New Issue
Block a user