2 // Copyright (c) 2010-2015 Yves Langisch. All rights reserved.
3 // http://cyberduck.ch/
5 // This program is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License as published by
7 // the Free Software Foundation; either version 2 of the License, or
8 // (at your option) any later version.
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
15 // Bug fixes, suggestions and comments should be sent to:
19 using ch
.cyberduck
.cli
;
20 using ch
.cyberduck
.core
.preferences
;
21 using org
.apache
.commons
.cli
;
22 using Console
= System
.Console
;
24 namespace Ch
.Cyberduck
.Cli
26 internal class WindowsTerminal
: Terminal
28 public WindowsTerminal(Options options
, CommandLine input
)
29 : base(new WindowsTerminalPreferences(), options
, input
)
33 private static void Main(string[] args
)
35 // set UTF-8 encoding, tested in mintty (cygwin, babun) and cmd.exe
36 java
.lang
.System
.setProperty("file.encoding", "UTF-8");
37 Console
.OutputEncoding
= System
.Text
.Encoding
.UTF8
;
39 Preferences defaults
= new WindowsTerminalPreferences();
40 PreferencesFactory
.set(defaults
);