vfs: check userland buffers before reading them.
[haiku.git] / src / apps / terminal / TermConst.cpp
blobae4a608a8e9c96eb2e97bbe6e62b29fe78c5c389
1 /*
2 * Copyright 2010, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
4 */
7 #include "TermConst.h"
9 #include <Catalog.h>
12 #undef B_TRANSLATION_CONTEXT
13 #define B_TRANSLATION_CONTEXT "Terminal ToolTips"
16 const char* const kTooTipSetTabTitlePlaceholders = B_TRANSLATE(
17 "\t%d\t-\tThe current working directory of the active process.\n"
18 "\t\t\tOptionally the maximum number of path components can be\n"
19 "\t\t\tspecified. E.g. '%2d' for at most two components.\n"
20 "\t%i\t-\tThe index of the tab.\n"
21 "\t%e\t-\tThe encoding of the current tab. Not shown for UTF-8.\n"
22 "\t%p\t-\tThe name of the active process.\n"
23 "\t%%\t-\tThe character '%'.");
25 const char* const kTooTipSetWindowTitlePlaceholders = B_TRANSLATE(
26 "\t%d\t-\tThe current working directory of the active process in the\n"
27 "\t\t\tcurrent tab. Optionally the maximum number of path components\n"
28 "\t\t\tcan be specified. E.g. '%2d' for at most two components.\n"
29 "\t%T\t-\tThe Terminal application name for the current locale.\n"
30 "\t%e\t-\tThe encoding of the current tab. Not shown for UTF-8.\n"
31 "\t%i\t-\tThe index of the window.\n"
32 "\t%p\t-\tThe name of the active process in the current tab.\n"
33 "\t%t\t-\tThe title of the current tab.");
35 const char* const kToolTipCommonTitlePlaceholders = B_TRANSLATE(
36 "\t%%\t-\tThe character '%'.\n"
37 "\t%<\t-\tStarts a section that will only be shown if a placeholder\n"
38 "\t\t\tafterwards is not empty.\n"
39 "\t%>\t-\tStarts a section that will only be shown if a placeholder\n"
40 "\t\t\tbetween a previous %< section and this one is not empty.\n"
41 "\t%-\t-\tEnds a %< or %> section.\n\n"
42 "Any non alpha numeric character between '%' and the format "
43 "letter will insert a space only\nif the placeholder value is not "
44 "empty. It will add to the %< section.");
46 const char* const kShellEscapeCharacters = " ~`#$&*()\\|[]{};'\"<>?!";
47 const char* const kDefaultAdditionalWordCharacters = ":@-./_~";
48 const char* const kURLAdditionalWordCharacters = ":/-._~[]?#@!$%&'()*+,;=";