diff --git a/examples/component/checkbox.cpp b/examples/component/checkbox.cpp index 7b3fba4..c63de28 100644 --- a/examples/component/checkbox.cpp +++ b/examples/component/checkbox.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include "ftxui/component/checkbox.hpp" #include "ftxui/component/component.hpp" diff --git a/examples/component/checkbox_in_frame.cpp b/examples/component/checkbox_in_frame.cpp index b0eb5e9..aa66be7 100644 --- a/examples/component/checkbox_in_frame.cpp +++ b/examples/component/checkbox_in_frame.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include "ftxui/component/checkbox.hpp" #include "ftxui/component/container.hpp" #include "ftxui/component/input.hpp" diff --git a/examples/component/gallery.cpp b/examples/component/gallery.cpp index dc6bf55..360938c 100644 --- a/examples/component/gallery.cpp +++ b/examples/component/gallery.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include "ftxui/component/checkbox.hpp" #include "ftxui/component/container.hpp" #include "ftxui/component/input.hpp" diff --git a/examples/component/homescreen.cpp b/examples/component/homescreen.cpp index 10abfd1..b92856e 100644 --- a/examples/component/homescreen.cpp +++ b/examples/component/homescreen.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include #include diff --git a/examples/component/input.cpp b/examples/component/input.cpp index cfe5aa7..269fc1b 100644 --- a/examples/component/input.cpp +++ b/examples/component/input.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include "ftxui/component/input.hpp" #include diff --git a/examples/component/menu.cpp b/examples/component/menu.cpp index 43afd46..db8b96f 100644 --- a/examples/component/menu.cpp +++ b/examples/component/menu.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include "ftxui/component/menu.hpp" #include diff --git a/examples/component/menu2.cpp b/examples/component/menu2.cpp index d078855..daf3203 100644 --- a/examples/component/menu2.cpp +++ b/examples/component/menu2.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include #include #include diff --git a/examples/component/menu_style.cpp b/examples/component/menu_style.cpp index ae3e4ae..433c234 100644 --- a/examples/component/menu_style.cpp +++ b/examples/component/menu_style.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include #include diff --git a/examples/component/radiobox.cpp b/examples/component/radiobox.cpp index 8a9dd7e..46e106d 100644 --- a/examples/component/radiobox.cpp +++ b/examples/component/radiobox.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include "ftxui/component/radiobox.hpp" #include "ftxui/component/component.hpp" diff --git a/examples/component/radiobox_in_frame.cpp b/examples/component/radiobox_in_frame.cpp index 7bcb206..ae40ac3 100644 --- a/examples/component/radiobox_in_frame.cpp +++ b/examples/component/radiobox_in_frame.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include "ftxui/component/checkbox.hpp" #include "ftxui/component/container.hpp" #include "ftxui/component/input.hpp" diff --git a/examples/component/tab_horizontal.cpp b/examples/component/tab_horizontal.cpp index d827505..77e689f 100644 --- a/examples/component/tab_horizontal.cpp +++ b/examples/component/tab_horizontal.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include #include diff --git a/examples/component/tab_vertical.cpp b/examples/component/tab_vertical.cpp index 3fc4804..c8ad689 100644 --- a/examples/component/tab_vertical.cpp +++ b/examples/component/tab_vertical.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include #include "ftxui/component/container.hpp" diff --git a/examples/component/toggle.cpp b/examples/component/toggle.cpp index 6dc185a..3844a59 100644 --- a/examples/component/toggle.cpp +++ b/examples/component/toggle.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include "ftxui/component/toggle.hpp" #include diff --git a/examples/dom/border.cpp b/examples/dom/border.cpp index 0211d64..837f219 100644 --- a/examples/dom/border.cpp +++ b/examples/dom/border.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include #include #include diff --git a/examples/dom/dbox.cpp b/examples/dom/dbox.cpp index 698af03..742c58a 100644 --- a/examples/dom/dbox.cpp +++ b/examples/dom/dbox.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include #include "ftxui/dom/elements.hpp" diff --git a/examples/dom/gauge.cpp b/examples/dom/gauge.cpp index 098137a..71684e6 100644 --- a/examples/dom/gauge.cpp +++ b/examples/dom/gauge.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include #include #include diff --git a/examples/dom/graph.cpp b/examples/dom/graph.cpp index e6d43c8..d59f9f6 100644 --- a/examples/dom/graph.cpp +++ b/examples/dom/graph.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include #include #include diff --git a/examples/dom/hflow.cpp b/examples/dom/hflow.cpp index 99f2b41..cc2fd07 100644 --- a/examples/dom/hflow.cpp +++ b/examples/dom/hflow.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include #include "ftxui/dom/elements.hpp" diff --git a/examples/dom/html_like.cpp b/examples/dom/html_like.cpp index 318fde5..8b52a57 100644 --- a/examples/dom/html_like.cpp +++ b/examples/dom/html_like.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include #include #include diff --git a/examples/dom/package_manager.cpp b/examples/dom/package_manager.cpp index e3b99b4..fb6719f 100644 --- a/examples/dom/package_manager.cpp +++ b/examples/dom/package_manager.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include #include #include diff --git a/examples/dom/paragraph.cpp b/examples/dom/paragraph.cpp index 614e689..8b2da83 100644 --- a/examples/dom/paragraph.cpp +++ b/examples/dom/paragraph.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include #include "ftxui/dom/elements.hpp" diff --git a/examples/dom/separator.cpp b/examples/dom/separator.cpp index 8e69fa9..16f10f4 100644 --- a/examples/dom/separator.cpp +++ b/examples/dom/separator.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include #include "ftxui/dom/elements.hpp" diff --git a/examples/dom/size.cpp b/examples/dom/size.cpp index ec3cfe0..3cb9da6 100644 --- a/examples/dom/size.cpp +++ b/examples/dom/size.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include #include "ftxui/dom/elements.hpp" diff --git a/examples/dom/spinner.cpp b/examples/dom/spinner.cpp index cf26e70..70c73db 100644 --- a/examples/dom/spinner.cpp +++ b/examples/dom/spinner.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include #include #include diff --git a/examples/dom/style_blink.cpp b/examples/dom/style_blink.cpp index a170d77..5db769a 100644 --- a/examples/dom/style_blink.cpp +++ b/examples/dom/style_blink.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include #include "ftxui/dom/elements.hpp" diff --git a/examples/dom/style_bold.cpp b/examples/dom/style_bold.cpp index faf13b1..bc33097 100644 --- a/examples/dom/style_bold.cpp +++ b/examples/dom/style_bold.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include #include "ftxui/dom/elements.hpp" diff --git a/examples/dom/style_color.cpp b/examples/dom/style_color.cpp index 8d87eaf..06151bd 100644 --- a/examples/dom/style_color.cpp +++ b/examples/dom/style_color.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include #include "ftxui/dom/elements.hpp" diff --git a/examples/dom/style_dim.cpp b/examples/dom/style_dim.cpp index eeee5af..38e88a0 100644 --- a/examples/dom/style_dim.cpp +++ b/examples/dom/style_dim.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include #include "ftxui/dom/elements.hpp" diff --git a/examples/dom/style_gallery.cpp b/examples/dom/style_gallery.cpp index 4715baa..c67a7fe 100644 --- a/examples/dom/style_gallery.cpp +++ b/examples/dom/style_gallery.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include #include "ftxui/dom/elements.hpp" diff --git a/examples/dom/style_inverted.cpp b/examples/dom/style_inverted.cpp index 0fc599d..1395100 100644 --- a/examples/dom/style_inverted.cpp +++ b/examples/dom/style_inverted.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include #include "ftxui/dom/elements.hpp" diff --git a/examples/dom/style_underlined.cpp b/examples/dom/style_underlined.cpp index 9175c5c..0f01841 100644 --- a/examples/dom/style_underlined.cpp +++ b/examples/dom/style_underlined.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include #include "ftxui/dom/elements.hpp" diff --git a/examples/dom/vbox_hbox.cpp b/examples/dom/vbox_hbox.cpp index 0d55812..45adfc5 100644 --- a/examples/dom/vbox_hbox.cpp +++ b/examples/dom/vbox_hbox.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include #include "ftxui/dom/elements.hpp" diff --git a/examples/util/print_key_press.cpp b/examples/util/print_key_press.cpp index dc8c968..86442ef 100644 --- a/examples/util/print_key_press.cpp +++ b/examples/util/print_key_press.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include #include #include diff --git a/include/ftxui/component/checkbox.hpp b/include/ftxui/component/checkbox.hpp index 7428e53..1dcffea 100644 --- a/include/ftxui/component/checkbox.hpp +++ b/include/ftxui/component/checkbox.hpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #ifndef FTXUI_COMPONENT_CHECKBOX_HPP #define FTXUI_COMPONENT_CHECKBOX_HPP diff --git a/include/ftxui/component/component.hpp b/include/ftxui/component/component.hpp index c68ca66..bd739f6 100644 --- a/include/ftxui/component/component.hpp +++ b/include/ftxui/component/component.hpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #ifndef FTXUI_COMPONENT_COMPONENT_HPP #define FTXUI_COMPONENT_COMPONENT_HPP diff --git a/include/ftxui/component/container.hpp b/include/ftxui/component/container.hpp index 51395ed..70fde16 100644 --- a/include/ftxui/component/container.hpp +++ b/include/ftxui/component/container.hpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #ifndef FTXUI_COMPONENT_CONTAINER_HPP #define FTXUI_COMPONENT_CONTAINER_HPP diff --git a/include/ftxui/component/event.hpp b/include/ftxui/component/event.hpp index d02e9e0..f24082e 100644 --- a/include/ftxui/component/event.hpp +++ b/include/ftxui/component/event.hpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #ifndef FTXUI_COMPONENT_EVENT_HPP #define FTXUI_COMPONENT_EVENT_HPP diff --git a/include/ftxui/component/input.hpp b/include/ftxui/component/input.hpp index f0c3245..712696f 100644 --- a/include/ftxui/component/input.hpp +++ b/include/ftxui/component/input.hpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #ifndef FTXUI_COMPONENT_INPUT_H_ #define FTXUI_COMPONENT_INPUT_H_ diff --git a/include/ftxui/component/menu.hpp b/include/ftxui/component/menu.hpp index ca38ffd..91a709b 100644 --- a/include/ftxui/component/menu.hpp +++ b/include/ftxui/component/menu.hpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #ifndef FTXUI_COMPONENT_MENU #define FTXUI_COMPONENT_MENU diff --git a/include/ftxui/component/radiobox.hpp b/include/ftxui/component/radiobox.hpp index 1f15a7e..a938b1b 100644 --- a/include/ftxui/component/radiobox.hpp +++ b/include/ftxui/component/radiobox.hpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #ifndef FTXUI_COMPONENT_RADIOBOX_HPP #define FTXUI_COMPONENT_RADIOBOX_HPP diff --git a/include/ftxui/component/receiver.hpp b/include/ftxui/component/receiver.hpp index e0ba5bb..e1a1c2c 100644 --- a/include/ftxui/component/receiver.hpp +++ b/include/ftxui/component/receiver.hpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #ifndef FTXUI_COMPONENT_RECEIVER_HPP_ #define FTXUI_COMPONENT_RECEIVER_HPP_ diff --git a/include/ftxui/component/screen_interactive.hpp b/include/ftxui/component/screen_interactive.hpp index 3e0426b..7b9b75b 100644 --- a/include/ftxui/component/screen_interactive.hpp +++ b/include/ftxui/component/screen_interactive.hpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #ifndef FTXUI_COMPONENT_SCREEN_INTERACTIVE_HPP #define FTXUI_COMPONENT_SCREEN_INTERACTIVE_HPP diff --git a/include/ftxui/component/toggle.hpp b/include/ftxui/component/toggle.hpp index e93e4b3..9747d6c 100644 --- a/include/ftxui/component/toggle.hpp +++ b/include/ftxui/component/toggle.hpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #ifndef FTXUI_COMPONENT_TOGGLE_H_ #define FTXUI_COMPONENT_TOGGLE_H_ diff --git a/include/ftxui/dom/elements.hpp b/include/ftxui/dom/elements.hpp index 6a6828d..82d534c 100644 --- a/include/ftxui/dom/elements.hpp +++ b/include/ftxui/dom/elements.hpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #ifndef FTXUI_DOM_ELEMENTS_HPP #define FTXUI_DOM_ELEMENTS_HPP diff --git a/include/ftxui/dom/node.hpp b/include/ftxui/dom/node.hpp index f54e6de..2b8e34d 100644 --- a/include/ftxui/dom/node.hpp +++ b/include/ftxui/dom/node.hpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #ifndef FTXUI_DOM_NODE_HPP #define FTXUI_DOM_NODE_HPP diff --git a/include/ftxui/dom/requirement.hpp b/include/ftxui/dom/requirement.hpp index f2f7412..701959c 100644 --- a/include/ftxui/dom/requirement.hpp +++ b/include/ftxui/dom/requirement.hpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #ifndef FTXUI_DOM_REQUIREMENT_HPP #define FTXUI_DOM_REQUIREMENT_HPP diff --git a/include/ftxui/dom/take_any_args.hpp b/include/ftxui/dom/take_any_args.hpp index e5db345..8de009b 100644 --- a/include/ftxui/dom/take_any_args.hpp +++ b/include/ftxui/dom/take_any_args.hpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include template diff --git a/include/ftxui/screen/box.hpp b/include/ftxui/screen/box.hpp index e020b64..aaa9f45 100644 --- a/include/ftxui/screen/box.hpp +++ b/include/ftxui/screen/box.hpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #ifndef FTXUI_SCREEN_BOX_HPP #define FTXUI_SCREEN_BOX_HPP diff --git a/include/ftxui/screen/color.hpp b/include/ftxui/screen/color.hpp index b895fa8..d518bb0 100644 --- a/include/ftxui/screen/color.hpp +++ b/include/ftxui/screen/color.hpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #ifndef FTXUI_SCREEN_COLOR #define FTXUI_SCREEN_COLOR diff --git a/include/ftxui/screen/screen.hpp b/include/ftxui/screen/screen.hpp index b53956c..a5cacef 100644 --- a/include/ftxui/screen/screen.hpp +++ b/include/ftxui/screen/screen.hpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #ifndef FTXUI_SCREEN_SCREEN #define FTXUI_SCREEN_SCREEN diff --git a/include/ftxui/screen/string.hpp b/include/ftxui/screen/string.hpp index 1a1785a..b904f41 100644 --- a/include/ftxui/screen/string.hpp +++ b/include/ftxui/screen/string.hpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #ifndef FTXUI_SCREEN_STRING_HPP #define FTXUI_SCREEN_STRING_HPP diff --git a/include/ftxui/util/autoreset.hpp b/include/ftxui/util/autoreset.hpp index c371f03..aa09c00 100644 --- a/include/ftxui/util/autoreset.hpp +++ b/include/ftxui/util/autoreset.hpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #ifndef FTXUI_UTIL_AUTORESET_HPP #define FTXUI_UTIL_AUTORESET_HPP diff --git a/other/format.sh b/other/format.sh new file mode 100755 index 0000000..e8b3140 --- /dev/null +++ b/other/format.sh @@ -0,0 +1,19 @@ +#!/bin/bash +cd "$(dirname "$0")" +cd .. + +# Add the license file. +files=$(find ./src ./include ./examples -name "*.hpp" -o -name "*.cpp") +for file in $files +do + if ! grep -q Copyright $file + then + cat ./other/license_headers.cpp $file >$file.new && mv $file.new $file + fi +done + +# Use clang-format. +for file in $files +do + clang-format -i $file +done diff --git a/other/license_headers.cpp b/other/license_headers.cpp new file mode 100644 index 0000000..81c0407 --- /dev/null +++ b/other/license_headers.cpp @@ -0,0 +1,4 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + diff --git a/src/ftxui/component/checkbox.cpp b/src/ftxui/component/checkbox.cpp index 6e88987..86e5dfb 100644 --- a/src/ftxui/component/checkbox.cpp +++ b/src/ftxui/component/checkbox.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include "ftxui/component/checkbox.hpp" #include diff --git a/src/ftxui/component/component.cpp b/src/ftxui/component/component.cpp index e194138..fa07cc1 100644 --- a/src/ftxui/component/component.cpp +++ b/src/ftxui/component/component.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include "ftxui/component/component.hpp" #include diff --git a/src/ftxui/component/container.cpp b/src/ftxui/component/container.cpp index b4b26c5..1fdb47e 100644 --- a/src/ftxui/component/container.cpp +++ b/src/ftxui/component/container.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include "ftxui/component/container.hpp" #include diff --git a/src/ftxui/component/container_test.cpp b/src/ftxui/component/container_test.cpp index bcab985..a8c6e6b 100644 --- a/src/ftxui/component/container_test.cpp +++ b/src/ftxui/component/container_test.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include "ftxui/component/container.hpp" #include "gtest/gtest.h" diff --git a/src/ftxui/component/event.cpp b/src/ftxui/component/event.cpp index a4c08df..f595846 100644 --- a/src/ftxui/component/event.cpp +++ b/src/ftxui/component/event.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include "ftxui/component/event.hpp" #include diff --git a/src/ftxui/component/input.cpp b/src/ftxui/component/input.cpp index ac3baa4..f5d6f63 100644 --- a/src/ftxui/component/input.cpp +++ b/src/ftxui/component/input.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include "ftxui/component/input.hpp" #include diff --git a/src/ftxui/component/menu.cpp b/src/ftxui/component/menu.cpp index e949552..321edbb 100644 --- a/src/ftxui/component/menu.cpp +++ b/src/ftxui/component/menu.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include "ftxui/component/menu.hpp" #include diff --git a/src/ftxui/component/radiobox.cpp b/src/ftxui/component/radiobox.cpp index d098210..6e89d95 100644 --- a/src/ftxui/component/radiobox.cpp +++ b/src/ftxui/component/radiobox.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include "ftxui/component/radiobox.hpp" #include diff --git a/src/ftxui/component/radiobox_test.cpp b/src/ftxui/component/radiobox_test.cpp index 593cacd..22a7566 100644 --- a/src/ftxui/component/radiobox_test.cpp +++ b/src/ftxui/component/radiobox_test.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include "ftxui/component/radiobox.hpp" #include "gtest/gtest.h" diff --git a/src/ftxui/component/receiver_test.cpp b/src/ftxui/component/receiver_test.cpp index 5305631..7cdd513 100644 --- a/src/ftxui/component/receiver_test.cpp +++ b/src/ftxui/component/receiver_test.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include "ftxui/component/receiver.hpp" #include diff --git a/src/ftxui/component/screen_interactive.cpp b/src/ftxui/component/screen_interactive.cpp index ff29ccf..3eef226 100644 --- a/src/ftxui/component/screen_interactive.cpp +++ b/src/ftxui/component/screen_interactive.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include "ftxui/component/screen_interactive.hpp" #include diff --git a/src/ftxui/component/toggle.cpp b/src/ftxui/component/toggle.cpp index 8586f70..8403777 100644 --- a/src/ftxui/component/toggle.cpp +++ b/src/ftxui/component/toggle.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include "ftxui/component/toggle.hpp" #include diff --git a/src/ftxui/component/toggle_test.cpp b/src/ftxui/component/toggle_test.cpp index c806c9d..c9692d1 100644 --- a/src/ftxui/component/toggle_test.cpp +++ b/src/ftxui/component/toggle_test.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include "ftxui/component/toggle.hpp" #include "gtest/gtest.h" diff --git a/src/ftxui/dom/blink.cpp b/src/ftxui/dom/blink.cpp index 89b4e0e..4fa58e6 100644 --- a/src/ftxui/dom/blink.cpp +++ b/src/ftxui/dom/blink.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include "ftxui/dom/elements.hpp" #include "ftxui/dom/node_decorator.hpp" diff --git a/src/ftxui/dom/bold.cpp b/src/ftxui/dom/bold.cpp index 175b901..ae40c4e 100644 --- a/src/ftxui/dom/bold.cpp +++ b/src/ftxui/dom/bold.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include "ftxui/dom/elements.hpp" #include "ftxui/dom/node_decorator.hpp" diff --git a/src/ftxui/dom/border.cpp b/src/ftxui/dom/border.cpp index 7ef1b6e..2ce2630 100644 --- a/src/ftxui/dom/border.cpp +++ b/src/ftxui/dom/border.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include #include "ftxui/dom/elements.hpp" diff --git a/src/ftxui/dom/color.cpp b/src/ftxui/dom/color.cpp index 1b45c19..dc2ced2 100644 --- a/src/ftxui/dom/color.cpp +++ b/src/ftxui/dom/color.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include "ftxui/dom/elements.hpp" #include "ftxui/dom/node_decorator.hpp" diff --git a/src/ftxui/dom/composite_decorator.cpp b/src/ftxui/dom/composite_decorator.cpp index c4214ef..5479fce 100644 --- a/src/ftxui/dom/composite_decorator.cpp +++ b/src/ftxui/dom/composite_decorator.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include "ftxui/dom/elements.hpp" #include "ftxui/dom/node.hpp" diff --git a/src/ftxui/dom/dbox.cpp b/src/ftxui/dom/dbox.cpp index 50b6641..abd7847 100644 --- a/src/ftxui/dom/dbox.cpp +++ b/src/ftxui/dom/dbox.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include #include "ftxui/dom/elements.hpp" diff --git a/src/ftxui/dom/dim.cpp b/src/ftxui/dom/dim.cpp index 1845e1e..ce1c51b 100644 --- a/src/ftxui/dom/dim.cpp +++ b/src/ftxui/dom/dim.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include "ftxui/dom/elements.hpp" #include "ftxui/dom/node_decorator.hpp" diff --git a/src/ftxui/dom/flex.cpp b/src/ftxui/dom/flex.cpp index a12496b..b6bd879 100644 --- a/src/ftxui/dom/flex.cpp +++ b/src/ftxui/dom/flex.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include "ftxui/dom/elements.hpp" #include "ftxui/dom/node.hpp" diff --git a/src/ftxui/dom/frame.cpp b/src/ftxui/dom/frame.cpp index c215775..5ea53ab 100644 --- a/src/ftxui/dom/frame.cpp +++ b/src/ftxui/dom/frame.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include #include "ftxui/dom/elements.hpp" diff --git a/src/ftxui/dom/gauge.cpp b/src/ftxui/dom/gauge.cpp index 588cbe0..494c227 100644 --- a/src/ftxui/dom/gauge.cpp +++ b/src/ftxui/dom/gauge.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include "ftxui/dom/elements.hpp" #include "ftxui/dom/node.hpp" diff --git a/src/ftxui/dom/gauge_test.cpp b/src/ftxui/dom/gauge_test.cpp index 328b057..0e702a7 100644 --- a/src/ftxui/dom/gauge_test.cpp +++ b/src/ftxui/dom/gauge_test.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include "ftxui/dom/elements.hpp" #include "ftxui/screen/screen.hpp" #include "gtest/gtest.h" diff --git a/src/ftxui/dom/graph.cpp b/src/ftxui/dom/graph.cpp index 520dd38..e466ac8 100644 --- a/src/ftxui/dom/graph.cpp +++ b/src/ftxui/dom/graph.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include "ftxui/dom/elements.hpp" namespace ftxui { diff --git a/src/ftxui/dom/hbox.cpp b/src/ftxui/dom/hbox.cpp index efc0a3f..8bd5f6a 100644 --- a/src/ftxui/dom/hbox.cpp +++ b/src/ftxui/dom/hbox.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include #include "ftxui/dom/elements.hpp" diff --git a/src/ftxui/dom/hbox_test.cpp b/src/ftxui/dom/hbox_test.cpp index bca1c19..7c7ac16 100644 --- a/src/ftxui/dom/hbox_test.cpp +++ b/src/ftxui/dom/hbox_test.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include "ftxui/dom/elements.hpp" #include "ftxui/screen/screen.hpp" #include "gtest/gtest.h" diff --git a/src/ftxui/dom/hflow.cpp b/src/ftxui/dom/hflow.cpp index 3aacf62..7bb068c 100644 --- a/src/ftxui/dom/hflow.cpp +++ b/src/ftxui/dom/hflow.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include #include "ftxui/dom/elements.hpp" diff --git a/src/ftxui/dom/inverted.cpp b/src/ftxui/dom/inverted.cpp index c0a34f8..f3149d5 100644 --- a/src/ftxui/dom/inverted.cpp +++ b/src/ftxui/dom/inverted.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include "ftxui/dom/elements.hpp" #include "ftxui/dom/node_decorator.hpp" diff --git a/src/ftxui/dom/node.cpp b/src/ftxui/dom/node.cpp index a5cb1a4..c9da864 100644 --- a/src/ftxui/dom/node.cpp +++ b/src/ftxui/dom/node.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include "ftxui/dom/node.hpp" namespace ftxui { diff --git a/src/ftxui/dom/node_decorator.cpp b/src/ftxui/dom/node_decorator.cpp index f690e57..f62c918 100644 --- a/src/ftxui/dom/node_decorator.cpp +++ b/src/ftxui/dom/node_decorator.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include "ftxui/dom/node_decorator.hpp" namespace ftxui { diff --git a/src/ftxui/dom/node_decorator.hpp b/src/ftxui/dom/node_decorator.hpp index 1b7dae7..83679ac 100644 --- a/src/ftxui/dom/node_decorator.hpp +++ b/src/ftxui/dom/node_decorator.hpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #ifndef FTXUI_DOM_NODE_DECORATOR_H_ #define FTXUI_DOM_NODE_DECORATOR_H_ diff --git a/src/ftxui/dom/paragraph.cpp b/src/ftxui/dom/paragraph.cpp index 220705d..2c5d9cf 100644 --- a/src/ftxui/dom/paragraph.cpp +++ b/src/ftxui/dom/paragraph.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include #include "ftxui/dom/elements.hpp" diff --git a/src/ftxui/dom/separator.cpp b/src/ftxui/dom/separator.cpp index 0c86327..5c9f48b 100644 --- a/src/ftxui/dom/separator.cpp +++ b/src/ftxui/dom/separator.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include "ftxui/dom/node.hpp" namespace ftxui { diff --git a/src/ftxui/dom/size.cpp b/src/ftxui/dom/size.cpp index d5a167a..b0af312 100644 --- a/src/ftxui/dom/size.cpp +++ b/src/ftxui/dom/size.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include #include "ftxui/dom/elements.hpp" diff --git a/src/ftxui/dom/spinner.cpp b/src/ftxui/dom/spinner.cpp index e4f0c3c..d90577e 100644 --- a/src/ftxui/dom/spinner.cpp +++ b/src/ftxui/dom/spinner.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include "ftxui/dom/elements.hpp" #include "ftxui/dom/node.hpp" diff --git a/src/ftxui/dom/text.cpp b/src/ftxui/dom/text.cpp index e58a1e1..7b797d1 100644 --- a/src/ftxui/dom/text.cpp +++ b/src/ftxui/dom/text.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include "ftxui/dom/node.hpp" #include "ftxui/screen/string.hpp" diff --git a/src/ftxui/dom/text_test.cpp b/src/ftxui/dom/text_test.cpp index c1d99f6..f8616e2 100644 --- a/src/ftxui/dom/text_test.cpp +++ b/src/ftxui/dom/text_test.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include "ftxui/dom/elements.hpp" #include "ftxui/screen/screen.hpp" #include "gtest/gtest.h" diff --git a/src/ftxui/dom/underlined.cpp b/src/ftxui/dom/underlined.cpp index 9870cfc..edded6a 100644 --- a/src/ftxui/dom/underlined.cpp +++ b/src/ftxui/dom/underlined.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include "ftxui/dom/elements.hpp" #include "ftxui/dom/node_decorator.hpp" diff --git a/src/ftxui/dom/util.cpp b/src/ftxui/dom/util.cpp index febb4cf..d5f4672 100644 --- a/src/ftxui/dom/util.cpp +++ b/src/ftxui/dom/util.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include "ftxui/dom/elements.hpp" namespace ftxui { diff --git a/src/ftxui/dom/vbox.cpp b/src/ftxui/dom/vbox.cpp index 25e0697..b355171 100644 --- a/src/ftxui/dom/vbox.cpp +++ b/src/ftxui/dom/vbox.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include #include diff --git a/src/ftxui/dom/vbox_test.cpp b/src/ftxui/dom/vbox_test.cpp index 3da7784..1245806 100644 --- a/src/ftxui/dom/vbox_test.cpp +++ b/src/ftxui/dom/vbox_test.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include "ftxui/dom/elements.hpp" #include "ftxui/screen/screen.hpp" #include "gtest/gtest.h" diff --git a/src/ftxui/screen/box.cpp b/src/ftxui/screen/box.cpp index baf0f46..05f5a29 100644 --- a/src/ftxui/screen/box.cpp +++ b/src/ftxui/screen/box.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include "ftxui/screen/box.hpp" #include diff --git a/src/ftxui/screen/screen.cpp b/src/ftxui/screen/screen.cpp index 42e46c0..1745022 100644 --- a/src/ftxui/screen/screen.cpp +++ b/src/ftxui/screen/screen.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include "ftxui/screen/screen.hpp" #include diff --git a/src/ftxui/screen/string.cpp b/src/ftxui/screen/string.cpp index 46a029e..8cf4c91 100644 --- a/src/ftxui/screen/string.cpp +++ b/src/ftxui/screen/string.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include "ftxui/screen/string.hpp" #include diff --git a/src/ftxui/screen/terminal.cpp b/src/ftxui/screen/terminal.cpp index 0598667..2c5f07f 100644 --- a/src/ftxui/screen/terminal.cpp +++ b/src/ftxui/screen/terminal.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include "ftxui/screen/terminal.hpp" #include diff --git a/src/ftxui/screen/terminal.hpp b/src/ftxui/screen/terminal.hpp index 2310bac..8e29596 100644 --- a/src/ftxui/screen/terminal.hpp +++ b/src/ftxui/screen/terminal.hpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #ifndef FTXUI_CORE_TERMINAL_HPP #define FTXUI_CORE_TERMINAL_HPP diff --git a/src/ftxui/screen/wcwidth.cpp b/src/ftxui/screen/wcwidth.cpp index b47edb1..0e69959 100644 --- a/src/ftxui/screen/wcwidth.cpp +++ b/src/ftxui/screen/wcwidth.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + /* * This is an implementation of wcwidth() and wcswidth() (defined in * IEEE Std 1002.1-2001) for Unicode.