/ Check-in [c9eba2f7]
Login
Overview
Comment:On unix, make the "transient in-memory database" text bold, but not red. Leave the text read on windows.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | memdb-warning
Files: files | file ages | folders
SHA1:c9eba2f7be468ae7fc843ffd5b09bd062ee311c3
User & Date: drh 2014-02-10 19:36:06
Context
2014-02-10
19:59
Add the ".save" command as an alias for ".backup". Improvements to the way font changes are implemented on the in-memory database warning. Closed-Leaf check-in: fe284afe user: drh tags: memdb-warning
19:36
On unix, make the "transient in-memory database" text bold, but not red. Leave the text read on windows. check-in: c9eba2f7 user: drh tags: memdb-warning
19:27
In the command-line shell, on the banner, warn about the use of a transient in-memory database in bold red text. check-in: 0fbc0fce user: drh tags: memdb-warning
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/shell.c.

3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
}
static void outputNormal(void){
  SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),
         FOREGROUND_RED|FOREGROUND_GREEN|FOREGROUND_BLUE);
}
#else
static void outputRed(void){
  printf("\033[1;31m");
}
static void outputNormal(void){
  printf("\033[0m");
}
#endif

/*







|







3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
}
static void outputNormal(void){
  SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),
         FOREGROUND_RED|FOREGROUND_GREEN|FOREGROUND_BLUE);
}
#else
static void outputRed(void){
  printf("\033[1m");
}
static void outputNormal(void){
  printf("\033[0m");
}
#endif

/*