2 * Copyright 2013, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
12 #include "TermConst.h"
15 HyperLink::HyperLink()
23 HyperLink::HyperLink(const BString
& address
, Type type
)
32 HyperLink::HyperLink(const BString
& text
, const BString
& address
, Type type
)
47 // open with the "open" program
48 BString
address(fAddress
);
49 address
.CharacterEscape(kShellEscapeCharacters
, '\\');
51 commandLine
.SetToFormat("/bin/open %s", address
.String());
52 return system(commandLine
) == 0 ? B_OK
: errno
;