place cursor in newly opened files at the end, fixes LP:#188908
[pyroom.git] / pyroom
blob3c4c8dcb9fce582f9d1fa961db8ebfeeca19b97d
1 #!/usr/bin/env python
2 # -*- coding:utf-8 -*-
4 # -----------------------------------------------------------------------------
5 # PyRoom - A clone of WriteRoom
6 # Copyright (c) 2007 Nicolas P. Rougier & NoWhereMan
7 # Copyright (c) 2008 The Pyroom Team - See AUTHORS file for more information
9 # This program is free software: you can redistribute it and/or modify it under
10 # the terms of the GNU General Public License as published by the Free Software
11 # Foundation, either version 3 of the License, or (at your option) any later
12 # version.
14 # This program is distributed in the hope that it will be useful, but WITHOUT
15 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
17 # details.
19 # You should have received a copy of the GNU General Public License along with
20 # this program. If not, see <http://www.gnu.org/licenses/>.
21 # -----------------------------------------------------------------------------
23 """
24 PyRoom - A clone of WriteRoom
25 =============================
27 Based on code posted on ubuntu forums by NoWhereMan (www.nowhereland.it)
28 (Ubuntu thread was "WriteRoom/Darkroom/?")
30 :copyright: 2007 Nicolas P. Rougier & NoWhereMan Copyright
31 :copyright: 2008 The PyRoom Theme - See AUTHORS file for more information
32 :license: GNU General Public License, version 3 or later
33 """
35 import sys, PyRoom.cmdline
37 try:
38 sys.exit(PyRoom.cmdline.main())
39 except KeyboardInterrupt:
40 sys.exit(1)